diff --git a/install_dehydrated.sh b/install_dehydrated.sh index bcff7ae..32ef47e 100755 --- a/install_dehydrated.sh +++ b/install_dehydrated.sh @@ -1571,6 +1571,20 @@ else verbose=false fi + +# ------------- +# - Read Commanline Arguments +# ------------- + +# If option '-q' is present, be silent, even if running in a terminal +# +while getopts q opt ; do + case \$opt in + q) verbose=false ;; + esac +done + + # -Is systemd supported on this system? # - systemd_supported=false @@ -3432,6 +3446,20 @@ else terminal=false fi + +# ------------- +# - Read Commanline Arguments +# ------------- + +# If option '-q' is present, be silent, even if running in a terminal +# +while getopts q opt ; do + case \$opt in + q) terminal=false ;; + esac +done + + if \$terminal ; then clear echo ""