Skip to contentSkip to conversation

: Fix sed quoting in sparc64 install script.

PATCH New David Miller 1 participant 1 message May 5, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : Fix sed quoting in sparc64 install script.

Committed.

ChangeLog +4 -0
Index: ChangeLog
===================================================================
@@ -1,3 +1,7 @@
+2009-05-05  David S. Miller  <[email protected]>
+
+	* util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
+
 2009-05-05  Pavel Roskin  <[email protected]>
 
 	* include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
sparc64/ieee1275/grub-install.in +2 -2
Index: util/sparc64/ieee1275/grub-install.in
===================================================================
@@ -237,8 +237,8 @@
     grub_drive="`$grub_probe --target=drive --device ${grub_device}`"
 
     # Strip partition number
-    install_drive="`echo ${install_drive} | sed -e s/\([^\]\),[0-9]*/\1/g`"
-    grub_drive="`echo ${grub_drive} | sed -e s/\([^\]\),[0-9]*/\1/g`"
+    install_drive="`echo ${install_drive} | sed -e 's/\([^\]\),[0-9]*/\1/g'`"
+    grub_drive="`echo ${grub_drive} | sed -e 's/\([^\]\),[0-9]*/\1/g'`"
     if [ "x${grub_drive}" != "x${install_drive}" ] ; then
         uuid="`$grub_probe --target=fs_uuid --device ${grub_device}`"
         if [ "x${uuid}" = "x" ] ; then