From 1d68daf06b9379c27a066fe6efb1c9e32d7eac53 Mon Sep 17 00:00:00 2001 From: Nathaniel Landau Date: Fri, 30 Jul 2021 12:40:57 -0400 Subject: [PATCH] Fix null variable error on older bash versions --- scriptTemplate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scriptTemplate.sh b/scriptTemplate.sh index 396915a..6717122 100755 --- a/scriptTemplate.sh +++ b/scriptTemplate.sh @@ -320,7 +320,7 @@ _parseOptions_() { esac shift done - set -- "${options[@]}" + set -- "${options[@]:-}" unset options # Read the options and set stuff