armbian-next: make sure we're running on Bash 5.x at least

This commit is contained in:
Ricardo Pardini
2022-10-19 16:59:50 +02:00
parent 19e15b8b35
commit 7107368060

View File

@@ -9,6 +9,13 @@
# This file is a part of the Armbian build script
# https://github.com/armbian/build/
# The Armbian functions require Bash 5.x.
if [[ "${BASH_VERSINFO:-0}" -lt 5 ]]; then
echo "Armbian build scripts require Bash 5.x. Go get it..." >&2
# @TODO: rpardini: add instructions, maybe.
exit 50
fi
# Users should not start here, but instead use ./compile.sh at the root.
if [[ $(basename "$0") == single.sh ]]; then
echo "Please use compile.sh to start the build process"