diff options
author | Jonathan Bauer | 2020-05-26 12:49:48 +0200 |
---|---|---|
committer | Jonathan Bauer | 2020-05-26 12:49:48 +0200 |
commit | 07322583f04f246c20c4fa262ec9510630e14c0a (patch) | |
tree | 61017452772f074070430405a67625e1be144247 | |
parent | build-initramfs.sh: shellcheck (diff) | |
download | systemd-init-07322583f04f246c20c4fa262ec9510630e14c0a.tar.gz systemd-init-07322583f04f246c20c4fa262ec9510630e14c0a.tar.xz systemd-init-07322583f04f246c20c4fa262ec9510630e14c0a.zip |
build-initramfs.sh: fix bash shellcheck fix
-rwxr-xr-x | build-initramfs.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/build-initramfs.sh b/build-initramfs.sh index 4c280661..a4ad3576 100755 --- a/build-initramfs.sh +++ b/build-initramfs.sh @@ -97,7 +97,8 @@ declare -A override bootstrap() { for module in "${!core_@}" "${!module_@}"; do - if declare -n _ref="$module"; then + declare -n _ref="$module" + if [ $? -ne 0 ]; then echo "Only bash >= 4.3 supports namerefs." \ "You are running ${BASH_VERSION}." \ "Falling back to using evil eval..." |