summaryrefslogtreecommitdiffstats
path: root/build-initramfs.sh
diff options
context:
space:
mode:
authorJonathan Bauer2020-05-26 12:49:48 +0200
committerJonathan Bauer2020-05-26 12:49:48 +0200
commit07322583f04f246c20c4fa262ec9510630e14c0a (patch)
tree61017452772f074070430405a67625e1be144247 /build-initramfs.sh
parentbuild-initramfs.sh: shellcheck (diff)
downloadsystemd-init-07322583f04f246c20c4fa262ec9510630e14c0a.tar.gz
systemd-init-07322583f04f246c20c4fa262ec9510630e14c0a.tar.xz
systemd-init-07322583f04f246c20c4fa262ec9510630e14c0a.zip
build-initramfs.sh: fix bash shellcheck fix
Diffstat (limited to 'build-initramfs.sh')
-rwxr-xr-xbuild-initramfs.sh3
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..."