From: Harald Hoyer Date: Fri, 12 Feb 2021 12:26:14 +0000 (+0100) Subject: fix: shellcheck for modules.d/99base/dracut-lib.sh X-Git-Tag: 052~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=060732d927abcc5b9834cbdb857f3a9f2ac8bfe3;p=thirdparty%2Fdracut.git fix: shellcheck for modules.d/99base/dracut-lib.sh --- diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh index 9a35fb98b..315a91eb8 100755 --- a/modules.d/99base/dracut-lib.sh +++ b/modules.d/99base/dracut-lib.sh @@ -785,10 +785,10 @@ inst_hook() { if [ -n "$onetime" ]; then { echo '[ -e "$_job" ] && rm -f -- "$_job"' - echo "$_exe $@" + echo "$_exe $*" } > "/tmp/$$-${_job}.sh" else - echo "$_exe $@" > "/tmp/$$-${_job}.sh" + echo "$_exe $*" > "/tmp/$$-${_job}.sh" fi mv -f "/tmp/$$-${_job}.sh" "$hookdir/${_hookname}/${_job}.sh" @@ -821,7 +821,7 @@ add_mount_point() { if [ -n "$_dev" ]; then udevmatch "$_dev" >&7 || { warn "add_mount_point dev=$_dev incorrect!" - continue + return 1 } printf ', ' >&7 fi