From b39bfe99301dd4527f6eb987b6fac038063c1eba Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 15 Jun 2010 11:37:24 +0100 Subject: buildconfig: Fix setopt in case where option is already set but to the wrong value Signed-off-by: Alex Zeffertt --- buildconfigs/enable-xen-config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'buildconfigs') 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 -- cgit v1.2.3