Don't show dry-run warning when option quiet is selected

This commit is contained in:
2019-11-20 16:38:23 +00:00
parent e5678c9692
commit f5c5120fff

View File

@@ -221,7 +221,7 @@ execute() {
read -p "Start: y/[n]? " answer
case $answer in
[yY])
step_$1 $1 "$STEP_ARGS"
step_$1 $1 $STEP_ARGS
;;
*)
echo Aborting installation at step $1
@@ -229,7 +229,7 @@ execute() {
;;
esac
else
step_$1 $1 "$STEP_ARGS"
step_$1 $1 $STEP_ARGS
fi
}
@@ -508,7 +508,7 @@ main() {
fi
fi
if [ $DRY -ne 0 ] ; then
if [ $DRY -ne 0 ] && [ $QUIET -eq 0 ] ; then
echo
echo " [W] Dry run active."
echo " Printed commands may not be accurate (e.g. quotation incorrect)"