summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xcf-ipset.sh5
1 files changed, 1 insertions, 4 deletions
diff --git a/cf-ipset.sh b/cf-ipset.sh
index 29bfa66..082f9bb 100755
--- a/cf-ipset.sh
+++ b/cf-ipset.sh
@@ -1,18 +1,15 @@
#!/bin/bash
-TEMP=$(mktemp)
-IPSET_NAME="$1"
-
ipset_exists() {
ipset -L "$1" >/dev/null 2>/dev/null
}
die() {
echo "error: $@"
- [ -f "$TEMP" ] && rm "$TEMP"
exit 1
}
+IPSET_NAME="$1"
[ -z "$IPSET_NAME" ] && {
echo "usage: $0 IPSET_NAME"
exit