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