Adjustment for consistency

This commit is contained in:
Daniel Ziltener
2021-02-19 17:11:19 +01:00
parent 214a3e9894
commit 2aa92042fd

View File

@@ -32,24 +32,28 @@
. /usr/local/etc/bastille/bastille.conf . /usr/local/etc/bastille/bastille.conf
usage() { usage() {
error_exit "Usage: bastille cp TARGET HOST_PATH CONTAINER_PATH [CP_OPTIONS]" error_exit "Usage: bastille cp [OPTION] TARGET HOST_PATH CONTAINER_PATH"
} }
CPSOURCE="${1}"
CPDEST="${2}"
# Handle special-case commands first. # Handle special-case commands first.
case "$1" in case "$1" in
help|-h|--help) help|-h|--help)
usage usage
;; ;;
-q|--quiet)
OPTION="${1}"
CPSOURCE="${2}"
CPDEST="${3}"
;;
esac esac
if [ $# -ne 2 ]; then if [ $# -ne 2 ]; then
usage usage
fi fi
CPSOURCE="${1}"
CPDEST="${2}"
OPTION="${3}"
case "${OPTION}" in case "${OPTION}" in
-q|--quiet) -q|--quiet)
OPTION="-a" OPTION="-a"