[fix] Add check for TESTHOST being blank, only install packages before setup if missing

This commit is contained in:
William Wernert
2020-04-22 15:56:27 -04:00
parent d011be3faa
commit 5b3584d738
2 changed files with 13 additions and 7 deletions

View File

@@ -515,7 +515,7 @@ whiptail_management_server() {
# See if it resolves. Otherwise prompt to add to host file
TESTHOST=$(host "$MSRV")
if [[ $TESTHOST = *"not found"* ]] || [ -z "$TESTHOST" ] || [[ $TESTHOST = *"connection timed out"* ]]; then
if [[ $TESTHOST = *"not found"* ]] || [ -z "$TESTHOST" ] || [[ $TESTHOST = *"connection timed out"* ]] || [[ "$TESTHOST" = '' ]]; then
add_master_hostfile
fi