mirror of
https://github.com/hackacad/bastille.git
synced 2025-12-22 18:21:53 +01:00
import: Fix var names
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user