aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Reiner <nathan@nathanreiner.xyz>2023-04-07 10:01:53 +0200
committerNathan Reiner <nathan@nathanreiner.xyz>2023-04-07 10:01:53 +0200
commit42580a1b4882c2dca38ff5f1b6156a22bf22c051 (patch)
treece65e5661040367ea9437229019bf7182ab8f9ee
parent161c16506777e82e196437a26f4f320aa1d96070 (diff)
fix forward_remove
-rwxr-xr-xspawnctl2
1 files changed, 1 insertions, 1 deletions
diff --git a/spawnctl b/spawnctl
index 8c659b8..441073a 100755
--- a/spawnctl
+++ b/spawnctl
@@ -128,7 +128,7 @@ forward_add() {
}
forward_remove() {
- [ "$#" = "5" ] && help && exit
+ [ "$#" != "5" ] && help && exit
sed -i "/$1 $2 $3 $4 $5/d"
echo "remove $1 $2 $3 $4 $5" > /tmp/spawnctl-forward/cmd-fifo
}