summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/shuriken6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/shuriken b/bin/shuriken
index e6af2cb..2efd49a 100755
--- a/bin/shuriken
+++ b/bin/shuriken
@@ -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='0.7.0'
declare -r DEFAULTRC="${SHURIKEN_DEFAULT_RC:-/etc/default/shuriken}"
declare -r PACKAGED_TEMPLATE_DIR='/usr/share/shuriken/templates/default'