From e2164c15e356c9dfae0d94fc75200ef81f8c84cc Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Tue, 11 Jan 2022 21:35:07 +0300 Subject: fixes --- cf-ipset.sh | 5 +---- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3