Skip to contentSkip to conversation

fix setopt in buildconfigs/enable-xen-config

PATCH New Alex Zeffertt 1 participant 1 message Jun 14, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix setopt in buildconfigs/enable-xen-config

Regards,

Alex Zeffertt

Fix setopt in case where option is already set but to the wrong value

buildconfigs/enable-xen-config +1 -1
diff -r 3903d95733f7 buildconfigs/enable-xen-config
@@ -15,7 +15,7 @@
 	VALUE=$2
 
 	# First remove any existing instances of this option
-	sed -e "s/^# ${OPTION} is not set$//g ; s/^^{OPTION}=.$//g" -i "${CONFIG}"
+	sed -e "s/^# ${OPTION} is not set$//g ; s/^${OPTION}=.*$//g" -i "${CONFIG}"
 
 	# Then append the new value
 	case ${VALUE} in

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel