]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(dracut.sh): shellcheck warning SC1004
authorPavel Valena <pvalena@redhat.com>
Sun, 23 Jul 2023 16:36:46 +0000 (18:36 +0200)
committerAntonio Álvarez Feijoo <antonio.feijoo@suse.com>
Mon, 24 Jul 2023 09:08:42 +0000 (11:08 +0200)
As stated in [1] it should work without literal backslash+linefeed.

[1] https://github.com/koalaman/shellcheck/issues/1246

dracut.sh

index a67d124456d3be8158abe2855501360b9d459280..f17e789ab3b69cc40f534404b261c2214fdbddb2 100755 (executable)
--- a/dracut.sh
+++ b/dracut.sh
@@ -2467,7 +2467,7 @@ if [[ $uefi == yes ]]; then
         fi
     fi
 
-    offs=$(objdump -h "$uefi_stub" 2> /dev/null | gawk 'NF==7 {size=strtonum("0x"$3);\
+    offs=$(objdump -h "$uefi_stub" 2> /dev/null | gawk 'NF==7 {size=strtonum("0x"$3);
                 offset=strtonum("0x"$4)} END {print size + offset}')
     if [[ $offs -eq 0 ]]; then
         dfatal "Failed to get the size of $uefi_stub to create UEFI image file"