Commit 100b1a36 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Merge branch 'debug-to-verbose' into 'master'

Rename debug option to --verbose

See merge request !10
parents 7d3da600 c35c96f5
Pipeline #791 failed with stages
in 18 seconds
......@@ -6,14 +6,14 @@
case ${0##*/} in
backup-daily)
PERIOD="daily"
if [[ $1 == debug ]]
if [[ $1 == --verbose ]]
then
OPT="$1"
fi
;;
backup-weekly)
PERIOD="weekly"
if [[ $1 == debug ]]
if [[ $1 == --verbose ]]
then
OPT="$1"
fi
......@@ -23,8 +23,8 @@ case ${0##*/} in
daily|weekly)
PERIOD="$1"
;;
debug)
echo "ERROR: You need to specify - $0 <period> debug."
--verbose)
echo "ERROR: You need to specify - $0 <period> --verbose."
exit 1
;;
install)
......@@ -96,8 +96,8 @@ then
OPT="$2"
fi
# Change opts for when we debugging
if [[ $OPT == debug ]]
# Change opts for when we are debugging
if [[ $OPT == --verbose ]]
then
syncopts="--debug --max-load=20"
set -ex
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment