From c3d911957db90fa11cde1ccdc534054c0a51889b Mon Sep 17 00:00:00 2001 From: Aditya Gupta Date: Fri, 19 Jun 2026 21:45:04 +0530 Subject: [PATCH] fix: is non-empty before match check --- bootstrap.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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