From 5b599dc593ae1af3ae722d52bc2169f30fbf48db Mon Sep 17 00:00:00 2001 From: tschettervictor <85497460+tschettervictor@users.noreply.github.com> Date: Thu, 27 Feb 2025 17:02:54 -0700 Subject: [PATCH] import: Fix var names --- usr/local/share/bastille/import.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/usr/local/share/bastille/import.sh b/usr/local/share/bastille/import.sh index e966877e..24642979 100644 --- a/usr/local/share/bastille/import.sh +++ b/usr/local/share/bastille/import.sh @@ -52,20 +52,20 @@ EOF } # Handle options. -FORCE=0 -ZRECV="-u" +OPT_FORCE=0 +OPT_ZRECV="-u" USER_IMPORT= while [ "$#" -gt 0 ]; do case "${1}" in - -h|--help|help) - usage - ;; + -h|--help|help) + usage + ;; -f|--force) - FORCE="1" + OPT_FORCE="1" shift ;; -v|--verbose) - ZRECV="-u -v" + OPT_ZRECV="-u -v" shift ;; -x|--debug) @@ -75,8 +75,8 @@ while [ "$#" -gt 0 ]; do -*) for _opt in $(echo ${1} | sed 's/-//g' | fold -w1); do case ${_opt} in - f) FORCE=1 ;; - v) ZRECV="-u -v" ;; + f) OPT_FORCE=1 ;; + v) OPT_ZRECV="-u -v" ;; x) enable_debug ;; *) error_exit "Unknown Option: \"${1}\"" ;; esac