From f3a5b15911218aac47a79223d3be2ef25c138466 Mon Sep 17 00:00:00 2001 From: pvincent Date: Mon, 24 Aug 2026 16:42:02 +0400 Subject: [PATCH] return instead of exit --- install.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index eaf6499..ce962f7 100755 --- a/install.sh +++ b/install.sh @@ -3,6 +3,7 @@ ## CONSTANTS BASE_ARCHIVE_URL='https://git.artcode.re/miaou/miaou-bash/archive' +BASH_SHELL='/bin/bash' ## FUNCTIONS @@ -52,8 +53,8 @@ function execute_miaou_lib { } function assert_bash { - if [[ $SHELL != 'bin/bash' ]]; then - >&2 echo "you are running on SHELL=$SHELL. 'bin/bash' expected!" + if [[ $SHELL != "$BASH_SHELL" ]]; then + >&2 echo "you are running on SHELL=$SHELL. expectation: $BASH_SHELL" return 11 fi }