fix up dryrun

This commit is contained in:
Matthew Saunders Brown 2024-05-21 10:45:59 -07:00
parent d64b3d47fb
commit f1d130a3d8
3 changed files with 9 additions and 3 deletions

View File

@ -38,7 +38,7 @@ while getopts "b:np:h" opt; do
backup=${OPTARG}
;;
n )
dryrun=${OPTARG}
dryrun=true
;;
p )
pathtorestore=${OPTARG}

View File

@ -29,7 +29,7 @@ help()
}
# set any options that were passed
while getopts "b:d:h" opt; do
while getopts "b:d:nh" opt; do
case "${opt}" in
h )
help
@ -40,6 +40,9 @@ while getopts "b:d:h" opt; do
d )
database=${OPTARG}
;;
n )
dryrun=${OPTARG}
;;
\? )
echo "Invalid option: $OPTARG" 1>&2
exit 1;;

View File

@ -29,7 +29,7 @@ help()
}
# set any options that were passed
while getopts "b:z:h" opt; do
while getopts "b:nz:h" opt; do
case "${opt}" in
h )
help
@ -37,6 +37,9 @@ while getopts "b:z:h" opt; do
b )
backup=${OPTARG}
;;
n )
dryrun=true
;;
z )
zone=${OPTARG}
;;