Skip to content

Commit

Permalink
Remove unneeded quote escaping inside ``
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
laomaiweng authored Mar 25, 2019
1 parent d547aa0 commit c95a929
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion defaults/initrd.scripts
Original file line number Diff line number Diff line change
Expand Up @@ -894,7 +894,7 @@ cmdline_hwopts() {
MY_HWOPTS="${MY_HWOPTS} $x"
elif [ "${y}" = "no${x}" ]
then
MY_HWOPTS="`echo ${MY_HWOPTS} | sed -e \"s/${x}//g\" -`"
MY_HWOPTS="$(echo ${MY_HWOPTS} | sed -e "s/${x}//g" -)"
fi
if [ "$(echo ${y} | cut -b -7)" = "keymap=" ]
then
Expand Down

0 comments on commit c95a929

Please sign in to comment.