Skip to content

Commit e6f07ed

Browse files
committed
MOD: script.sh
1 parent f20fd6c commit e6f07ed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

template/script.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -901,6 +901,10 @@ function Script:meta() {
901901
[[ -n "${FISH_VERSION:-}" ]] && shell_brand="fish" && shell_version="$FISH_VERSION"
902902
[[ -n "${KSH_VERSION:-}" ]] && shell_brand="ksh" && shell_version="$KSH_VERSION"
903903
IO:debug "$info_icon Shell type : $shell_brand - version $shell_version"
904+
if [[ "$shell_brand" == "bash" && "${BASH_VERSINFO:-0}" -lt 4 ]]; then
905+
IO:die "Bash version 4 or higher is required - current version = $BASH_VERSINFO"
906+
fi
907+
904908

905909
os_kernel=$(uname -s)
906910
os_version=$(uname -r)

0 commit comments

Comments
 (0)