fix up dryrun
This commit is contained in:
parent
d64b3d47fb
commit
f1d130a3d8
|
@ -38,7 +38,7 @@ while getopts "b:np:h" opt; do
|
||||||
backup=${OPTARG}
|
backup=${OPTARG}
|
||||||
;;
|
;;
|
||||||
n )
|
n )
|
||||||
dryrun=${OPTARG}
|
dryrun=true
|
||||||
;;
|
;;
|
||||||
p )
|
p )
|
||||||
pathtorestore=${OPTARG}
|
pathtorestore=${OPTARG}
|
||||||
|
|
|
@ -29,7 +29,7 @@ help()
|
||||||
}
|
}
|
||||||
|
|
||||||
# set any options that were passed
|
# set any options that were passed
|
||||||
while getopts "b:d:h" opt; do
|
while getopts "b:d:nh" opt; do
|
||||||
case "${opt}" in
|
case "${opt}" in
|
||||||
h )
|
h )
|
||||||
help
|
help
|
||||||
|
@ -40,6 +40,9 @@ while getopts "b:d:h" opt; do
|
||||||
d )
|
d )
|
||||||
database=${OPTARG}
|
database=${OPTARG}
|
||||||
;;
|
;;
|
||||||
|
n )
|
||||||
|
dryrun=${OPTARG}
|
||||||
|
;;
|
||||||
\? )
|
\? )
|
||||||
echo "Invalid option: $OPTARG" 1>&2
|
echo "Invalid option: $OPTARG" 1>&2
|
||||||
exit 1;;
|
exit 1;;
|
||||||
|
|
|
@ -29,7 +29,7 @@ help()
|
||||||
}
|
}
|
||||||
|
|
||||||
# set any options that were passed
|
# set any options that were passed
|
||||||
while getopts "b:z:h" opt; do
|
while getopts "b:nz:h" opt; do
|
||||||
case "${opt}" in
|
case "${opt}" in
|
||||||
h )
|
h )
|
||||||
help
|
help
|
||||||
|
@ -37,6 +37,9 @@ while getopts "b:z:h" opt; do
|
||||||
b )
|
b )
|
||||||
backup=${OPTARG}
|
backup=${OPTARG}
|
||||||
;;
|
;;
|
||||||
|
n )
|
||||||
|
dryrun=true
|
||||||
|
;;
|
||||||
z )
|
z )
|
||||||
zone=${OPTARG}
|
zone=${OPTARG}
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user