Don't use wget --show-progress if it's not available

This commit is contained in:
TheElectronWill 2018-02-03 13:32:29 +01:00
parent 93ba3d8796
commit 0bcdb8a675
2 changed files with 4 additions and 1 deletions

View file

@ -26,6 +26,9 @@ else
distrib="unknown"
fi
# Initializes $wget_progress: detects if the option --show-progress is available
wget --help | grep -q '\--show-progress' && wget_progress="-q --show-progress" || wget_progress=""
# ask_yesno question
## Asks a yes/no question and stores the result in the 'answer' variable
ask_yesno() {