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>
This commit is contained in:
Keir Fraser committed 2010-06-15 11:37:24 +01:00
1 parent edf9a6a284
commit b39bfe9930
1 file changed
+1 -1
+1 -1
View File
@@ -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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.