Add a bash version check

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-03-04 23:28:50 +01:00
parent 988da43911
commit 938b6c8081
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -1,6 +1,11 @@
#!/usr/bin/env bash
set -euo pipefail
( bash --version | grep -q 'version 4' ) || {
echo "Bash too old, update to >=4.0"
exit 1
}
SYSTEM=$(uname -s | tr 'A-Z' 'a-z')
FORCE=0