Skip to content

Commit 9c47c1c

Browse files
committed
Remove unneeded quote escaping inside ``
Double quotes don't need to be escaped inside Bash command substitution. Also switch to the more modern $(), easier for humans to parse (and which happens to be less forgiving about such extra backslash escapes). Signed-off-by: Quentin Minster <quentin@minster.io>
1 parent 7ea94b0 commit 9c47c1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

defaults/initrd.scripts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ cmdline_hwopts() {
894894
MY_HWOPTS="${MY_HWOPTS} $x"
895895
elif [ "${y}" = "no${x}" ]
896896
then
897-
MY_HWOPTS="`echo ${MY_HWOPTS} | sed -e \"s/${x}//g\" -`"
897+
MY_HWOPTS="$(echo ${MY_HWOPTS} | sed -e "s/${x}//g" -)"
898898
fi
899899
if [ "$(echo ${y} | cut -b -7)" = "keymap=" ]
900900
then

0 commit comments

Comments
 (0)