mirror of
https://github.com/natelandau/shell-scripting-templates.git
synced 2025-11-11 06:23:47 -05:00
Fix null variable error on older bash versions
This commit is contained in:
@@ -320,7 +320,7 @@ _parseOptions_() {
|
||||
esac
|
||||
shift
|
||||
done
|
||||
set -- "${options[@]}"
|
||||
set -- "${options[@]:-}"
|
||||
unset options
|
||||
|
||||
# Read the options and set stuff
|
||||
|
||||
Reference in New Issue
Block a user