lib/helpers: handle unbound parameter

Expressly handle $BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE being not-set as being blank.
pull/1903/head
John D Pell 2021-07-25 23:01:02 -07:00
parent 0eff44930c
commit 8fb75cf0e3
1 changed files with 1 additions and 1 deletions

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