Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: LIST_FILE: unbound variable encountered with no arguments (#10) #11

Merged
merged 2 commits into from
Oct 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Fast update of IP set for ipset.
## Usage

```bash
ipset-fast-update 1.5.1
ipset-fast-update 1.5.2

Usage:
ipset-fast-update -n SET_NAME [-i PATH]... [-u URL]... [-e EXCLUDE_PATH]... [OPTIONS...]
Expand Down
8 changes: 4 additions & 4 deletions ipset-fast-update
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

set -euo pipefail

VERSION="1.5.1"
VERSION="1.5.2"

ALERT_THRESHOLD_RATIO="80"
IS_TEMPORARY="0"
Expand All @@ -26,9 +26,9 @@ IPSET_MAXELEM="4294967295"
IPSET_CONFIG="/etc/sysconfig/ipset-config"
STATE_DIR="/var/lib/ipset-fast-update"

unset LIST_FILE
unset TMP_LIST_FILE
unset TMP_LIST_CURRENT_FILE
LIST_FILE=""
TMP_LIST_FILE=""
TMP_LIST_CURRENT_FILE=""

trap atexit EXIT
trap 'rc=$?; trap - EXIT; atexit; exit $?' INT PIPE TERM
Expand Down
Loading