Add a bash version check
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
988da43911
commit
938b6c8081
1 changed files with 5 additions and 0 deletions
|
@ -1,6 +1,11 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -euo pipefail
|
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')
|
SYSTEM=$(uname -s | tr 'A-Z' 'a-z')
|
||||||
|
|
||||||
FORCE=0
|
FORCE=0
|
||||||
|
|
Loading…
Reference in a new issue