return instead of exit
This commit is contained in:
+3
-2
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user