diff --git a/include/functions b/include/functions index 2ce81d8a..77c4a71d 100644 --- a/include/functions +++ b/include/functions @@ -1396,6 +1396,7 @@ fi } + ################################################################################ # Name : Progress() # Description : Displays progress on screen with dots @@ -1404,21 +1405,23 @@ # Tip : Use this function from Register with the --progress parameter ################################################################################ - Progress() - { + Progress() { if [ ${CRONJOB} -eq 0 ]; then - if [ "$1" = "--finish" ]; then - ${ECHOCMD} "" - else - # If the No-Break version of echo is known, use that (usually breaks in combination with -e) - if [ ! "${ECHONB}" = "" ]; then - ${ECHONB} "$1" - else - ${ECHOCMD} -en "$1" + if [ ${QUIET} -eq 0 ]; then + if [ "$1" = "--finish" ]; then + ${ECHOCMD} "" + else + # If the No-Break version of echo is known, use that (usually breaks in combination with -e) + if [ ! "${ECHONB}" = "" ]; then + ${ECHONB} "$1" + else + ${ECHOCMD} -en "$1" + fi fi fi fi - } + } + ################################################################################ # Name : Progress()