lib/helpers: handle unbound parameter

Expressly handle $BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE being not-set as being blank.
This commit is contained in:
John D Pell
2021-07-25 23:01:02 -07:00
parent 0eff44930c
commit 8fb75cf0e3

View File

@@ -156,7 +156,7 @@ bash-it ()
$func $arg
done
if [ -n "$BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE" ]; then
if [ -n "${BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE:-}" ]; then
_bash-it-reload
fi
else