From 9c47c1c789211dfd6304a4bdd34881246e8ae15c Mon Sep 17 00:00:00 2001 From: Quentin Minster Date: Mon, 25 Mar 2019 07:14:26 +0100 Subject: [PATCH] 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 --- defaults/initrd.scripts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index 5d3a220b..1e557f5a 100644 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -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