return instead of exit

This commit is contained in:
pvincent
2026-08-24 16:42:02 +04:00
parent 49d44f8c07
commit f3a5b15911
+3 -2
View File
@@ -3,6 +3,7 @@
## CONSTANTS ## CONSTANTS
BASE_ARCHIVE_URL='https://git.artcode.re/miaou/miaou-bash/archive' BASE_ARCHIVE_URL='https://git.artcode.re/miaou/miaou-bash/archive'
BASH_SHELL='/bin/bash'
## FUNCTIONS ## FUNCTIONS
@@ -52,8 +53,8 @@ function execute_miaou_lib {
} }
function assert_bash { function assert_bash {
if [[ $SHELL != 'bin/bash' ]]; then if [[ $SHELL != "$BASH_SHELL" ]]; then
>&2 echo "you are running on SHELL=$SHELL. 'bin/bash' expected!" >&2 echo "you are running on SHELL=$SHELL. expectation: $BASH_SHELL"
return 11 return 11
fi fi
} }