diff --git a/install.sh b/install.sh index a573652..3ce3a5b 100755 --- a/install.sh +++ b/install.sh @@ -54,8 +54,8 @@ function execute_miaou_lib { } function assert_bash { - if [[ $SHELL != "$BASH_SHELL" ]]; then - >&2 echo "you are running on SHELL=$SHELL. expectation: $BASH_SHELL" + if [[ $(basename "$SHELL") != 'bash' ]]; then + >&2 echo "MIAOU ERROR: you are running on SHELL=$SHELL rather than 'bash'!" return 11 fi } diff --git a/lib/initiate.bash b/lib/initiate.bash index 55a8717..974769a 100644 --- a/lib/initiate.bash +++ b/lib/initiate.bash @@ -10,7 +10,7 @@ readonly AZERTY_ZONES=( 'Pacific/Noumea' 'Pacific/Tahiti' ) -readonly REQUIRED_PKGS=(file jq vim git) +readonly REQUIRED_PKGS=(file jq vim git bash-completion) readonly BACKUP_SUFFIX='.ORIGINAL' # FUNCTIONS