From: Harald Hoyer Date: Fri, 26 Mar 2021 09:29:06 +0000 (+0100) Subject: fix(systemd-ask-password): shellcheck for modules.d/01systemd-ask-password X-Git-Tag: 054~272 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3f114d3e31b4a87e969c46a365b43dec690d2870;p=thirdparty%2Fdracut.git fix(systemd-ask-password): shellcheck for modules.d/01systemd-ask-password --- diff --git a/modules.d/01systemd-ask-password/.shchkdir b/modules.d/01systemd-ask-password/.shchkdir new file mode 100644 index 000000000..e69de29bb diff --git a/modules.d/01systemd-ask-password/module-setup.sh b/modules.d/01systemd-ask-password/module-setup.sh index 2331480a7..dc89b221a 100755 --- a/modules.d/01systemd-ask-password/module-setup.sh +++ b/modules.d/01systemd-ask-password/module-setup.sh @@ -28,11 +28,12 @@ depends() { install() { inst_multiple -o \ - $systemdsystemunitdir/systemd-ask-password-console.path \ - $systemdsystemunitdir/systemd-ask-password-console.service \ - $systemdsystemunitdir/multi-user.target.wants/systemd-ask-password-wall.path \ - $systemdsystemunitdir/sysinit.target.wants/systemd-ask-password-console.path \ - systemd-ask-password systemd-tty-ask-password-agent + "$systemdsystemunitdir"/systemd-ask-password-console.path \ + "$systemdsystemunitdir"/systemd-ask-password-console.service \ + "$systemdsystemunitdir"/multi-user.target.wants/systemd-ask-password-wall.path \ + "$systemdsystemunitdir"/sysinit.target.wants/systemd-ask-password-console.path \ + systemd-ask-password \ + systemd-tty-ask-password-agent # Enable the systemd type service unit for systemd-ask-password. $SYSTEMCTL -q --root "$initdir" enable systemd-ask-password-console.service @@ -40,8 +41,8 @@ install() { # Install systemd-ask-password plymouth units if plymouth is enabled. if dracut_module_included "plymouth"; then inst_multiple -o \ - $systemdsystemunitdir/systemd-ask-password-plymouth.path \ - $systemdsystemunitdir/systemd-ask-password-plymouth.service + "$systemdsystemunitdir"/systemd-ask-password-plymouth.path \ + "$systemdsystemunitdir"/systemd-ask-password-plymouth.service $SYSTEMCTL -q --root "$initdir" enable systemd-ask-password-plymouth.service fi @@ -52,7 +53,7 @@ install() { # inst_multiple -o \ # $systemdsystemunitdir/systemd-ask-password-wall.path \ # $systemdsystemunitdir/systemd-ask-password-wall.service \ - # $systemdsystemunitdir/multi-user.target.wants/systemd-ask-password-wall.path + # $systemdsystemunitdir/multi-user.target.wants/systemd-ask-password-wall.path \ # # $SYSTEMCTL -q --root "$initdir" enable systemd-ask-password-wall.service #fi