kodev: error out if bash is too old

This commit is contained in:
Benoit Pierre
2024-08-11 20:58:27 +02:00
committed by Frans de Jonge
parent 93c7ceccd9
commit 9c70a3d6a9

5
kodev
View File

@@ -1,5 +1,10 @@
#!/usr/bin/env bash
if [[ "${BASH_VERSINFO[0]}" -lt 4 ]]; then
echo "incompatible bash version: ${BASH_VERSION}, need >=4.0"
exit 1
fi
ANSI_GREEN="\033[32;1m"
ANSI_RED="\033[31;1m"