import: Fix var names

This commit is contained in:
tschettervictor
2025-02-27 17:02:54 -07:00
committed by GitHub
parent cbd42519f3
commit 5b599dc593

View File

@@ -52,8 +52,8 @@ EOF
} }
# Handle options. # Handle options.
FORCE=0 OPT_FORCE=0
ZRECV="-u" OPT_ZRECV="-u"
USER_IMPORT= USER_IMPORT=
while [ "$#" -gt 0 ]; do while [ "$#" -gt 0 ]; do
case "${1}" in case "${1}" in
@@ -61,11 +61,11 @@ while [ "$#" -gt 0 ]; do
usage usage
;; ;;
-f|--force) -f|--force)
FORCE="1" OPT_FORCE="1"
shift shift
;; ;;
-v|--verbose) -v|--verbose)
ZRECV="-u -v" OPT_ZRECV="-u -v"
shift shift
;; ;;
-x|--debug) -x|--debug)
@@ -75,8 +75,8 @@ while [ "$#" -gt 0 ]; do
-*) -*)
for _opt in $(echo ${1} | sed 's/-//g' | fold -w1); do for _opt in $(echo ${1} | sed 's/-//g' | fold -w1); do
case ${_opt} in case ${_opt} in
f) FORCE=1 ;; f) OPT_FORCE=1 ;;
v) ZRECV="-u -v" ;; v) OPT_ZRECV="-u -v" ;;
x) enable_debug ;; x) enable_debug ;;
*) error_exit "Unknown Option: \"${1}\"" ;; *) error_exit "Unknown Option: \"${1}\"" ;;
esac esac