Skip to content

Commit 5d7747d

Browse files
authored
Merge pull request #11 from jfut/fix-unbound-variable
fix: LIST_FILE: unbound variable encountered with no arguments (#10)
2 parents baa105b + fc16de6 commit 5d7747d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Fast update of IP set for ipset.
88
## Usage
99

1010
```bash
11-
ipset-fast-update 1.5.1
11+
ipset-fast-update 1.5.2
1212

1313
Usage:
1414
ipset-fast-update -n SET_NAME [-i PATH]... [-u URL]... [-e EXCLUDE_PATH]... [OPTIONS...]

ipset-fast-update

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
set -euo pipefail
1515

16-
VERSION="1.5.1"
16+
VERSION="1.5.2"
1717

1818
ALERT_THRESHOLD_RATIO="80"
1919
IS_TEMPORARY="0"
@@ -26,9 +26,9 @@ IPSET_MAXELEM="4294967295"
2626
IPSET_CONFIG="/etc/sysconfig/ipset-config"
2727
STATE_DIR="/var/lib/ipset-fast-update"
2828

29-
unset LIST_FILE
30-
unset TMP_LIST_FILE
31-
unset TMP_LIST_CURRENT_FILE
29+
LIST_FILE=""
30+
TMP_LIST_FILE=""
31+
TMP_LIST_CURRENT_FILE=""
3232

3333
trap atexit EXIT
3434
trap 'rc=$?; trap - EXIT; atexit; exit $?' INT PIPE TERM

0 commit comments

Comments
 (0)