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