aboutsummaryrefslogtreecommitdiffstats
path: root/buildconfigs
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-06-15 11:37:24 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-06-15 11:37:24 +0100
commitb39bfe99301dd4527f6eb987b6fac038063c1eba (patch)
treef5d5947a592e753450215bf267330f141eb3b882 /buildconfigs
parentedf9a6a284be5e215d9f45462a4adab92493dd0c (diff)
downloadxen-b39bfe99301dd4527f6eb987b6fac038063c1eba.tar.gz
xen-b39bfe99301dd4527f6eb987b6fac038063c1eba.tar.bz2
xen-b39bfe99301dd4527f6eb987b6fac038063c1eba.zip
buildconfig: Fix setopt in case where option is already set but to the wrong value
Signed-off-by: Alex Zeffertt <alex.zeffertt@eu.citrix.com>
Diffstat (limited to 'buildconfigs')
-rw-r--r--buildconfigs/enable-xen-config2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildconfigs/enable-xen-config b/buildconfigs/enable-xen-config
index 9d15648a60..a4dc5362c2 100644
--- a/buildconfigs/enable-xen-config
+++ b/buildconfigs/enable-xen-config
@@ -15,7 +15,7 @@ setopt()
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