Browse Source

return instead of exit

main
pvincent 2 weeks ago
parent
commit
f3a5b15911
  1. 5
      install.sh

5
install.sh

@ -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
>&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 return 11
fi fi
} }

Loading…
Cancel
Save