fix #840 : check for whiptail in detect mode (#844)

This commit is contained in:
Thibault "bui" Koechlin 2021-07-01 13:50:40 +02:00 committed by GitHub
parent 556f93827a
commit 1d21679b3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -523,7 +523,8 @@ function show_link {
}
main() {
if [ "$1" == "install" ] || [ "$1" == "configure" ]; then
if [ "$1" == "install" ] || [ "$1" == "configure" ] || [ "$1" == "detect" ]; then
if [ "${SILENT}" == "false" ]; then
which whiptail > /dev/null
if [ $? -ne 0 ]; then