summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/Scripts/setwall3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/Scripts/setwall b/scripts/Scripts/setwall
index 25bcfb0..d34ed8d 100755
--- a/scripts/Scripts/setwall
+++ b/scripts/Scripts/setwall
@@ -7,7 +7,8 @@ BINNAME="setwall"
function unsetwalls() {
for wall in $@; do
echo unsetting $wall
- sed -i.bak ":$wall:d" $WALLFILE
+ pat=$(echo $wall | sed 's/\//\\\//g')
+ sed -i.bak "/$pat/d" $WALLFILE
done
}
function unsetcur() {