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