Skip to content

Commit

Permalink
fix(dracut.sh): shellcheck warning SC1004
Browse files Browse the repository at this point in the history
As stated in [1] it should work without literal backslash+linefeed.

[1] koalaman/shellcheck#1246
  • Loading branch information
pvalena authored and aafeijoo-suse committed Jul 24, 2023
1 parent 33a66ed commit dbdab2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dracut.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit dbdab2d

Please sign in to comment.