summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/shuriken.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/shuriken.sh b/src/shuriken.sh
index 4474600..482484c 100755
--- a/src/shuriken.sh
+++ b/src/shuriken.sh
@@ -4,6 +4,12 @@ set -euo pipefail
# shuriken (c) 2011 - 2014, 2022 by Paul Buetow
# https://codeberg.org/snonux/shuriken.sh
+if (( BASH_VERSINFO[0] < 5 \
+ || (BASH_VERSINFO[0] == 5 && BASH_VERSINFO[1] < 1) )); then
+ printf 'ERROR: shuriken requires Bash 5.1 or newer\n' >&2
+ exit 1
+fi
+
declare -r VERSION='SHURIKENVERSION'
declare -r DEFAULTRC="${SHURIKEN_DEFAULT_RC:-/etc/default/shuriken}"
declare -r PACKAGED_TEMPLATE_DIR='/usr/share/shuriken/templates/default'