diff options
| author | Paul Buetow <paul@buetow.org> | 2026-06-14 00:08:30 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-06-14 00:08:30 +0300 |
| commit | aabe2efbb79938dbbdb4f0ab496cdc22e7280736 (patch) | |
| tree | 6c92e044160f783aafbcec56b2d3fe0a0bf75afe /src | |
| parent | f9291765b363809ff4e75ff441d374ecef3ad40a (diff) | |
km0 address job pool review
Diffstat (limited to 'src')
| -rwxr-xr-x | src/shuriken.sh | 6 |
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' |
