From 49dfe9f1fc4736efcb694fa5f4a7b71c7edd3331 Mon Sep 17 00:00:00 2001 From: pvincent Date: Tue, 25 Aug 2026 18:43:09 +0400 Subject: [PATCH] SHELL bash + package bash-completion --- install.sh | 4 ++-- lib/initiate.bash | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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