]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix: shellcheck for modules.d/99base/dracut-lib.sh
authorHarald Hoyer <harald@redhat.com>
Fri, 12 Feb 2021 12:26:14 +0000 (13:26 +0100)
committerHarald Hoyer <harald@hoyer.xyz>
Mon, 15 Feb 2021 10:00:37 +0000 (11:00 +0100)
modules.d/99base/dracut-lib.sh

index 9a35fb98bc1d4adc1e3b1f6fe27b405ec7036af1..315a91eb8f563d084f13ba9814a5ee63818efdf7 100755 (executable)
@@ -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