summaryrefslogtreecommitdiff
path: root/scripts/Scripts
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2022-08-22 13:18:02 +0200
committerJulian T <julian@jtle.dk>2022-08-22 13:20:26 +0200
commite0ed64092db25f98d3665605693255c3192efeb2 (patch)
treec79697e7e784d24df887726cb4515cabe8c34e47 /scripts/Scripts
parent94eac62995ea3605faf2e3d3f902a6ea92e7f487 (diff)
updates from laptop
Diffstat (limited to 'scripts/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() {