kodev: error out if bash is too old

This commit is contained in:
Benoit Pierre authored and Frans de Jonge committed 2024-08-15 09:37:49 +02:00
1 parent 93c7ceccd9
commit 9c70a3d6a9
1 file changed
+5
+5
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"