diff --git a/bootstrap.sh b/bootstrap.sh index 8a0ff21..1fd9dcf 100755 --- a/bootstrap.sh +++ b/bootstrap.sh @@ -15,7 +15,7 @@ if [ -n "${ZSH_VERSION:-}" ]; then *file*) is_sourced=true ;; esac elif [ -n "${BASH_VERSION:-}" ]; then - if [ "${BASH_SOURCE[0]}" != "$0" ]; then + if [ -n "${BASH_SOURCE[0]:-}" ] && [ "${BASH_SOURCE[0]}" != "$0" ]; then is_sourced=true fi fi