diff --git a/.vscode/numbered-bookmarks.json b/.vscode/numbered-bookmarks.json index 65c7b37..adba1cd 100644 --- a/.vscode/numbered-bookmarks.json +++ b/.vscode/numbered-bookmarks.json @@ -12,7 +12,7 @@ -1, -1, -1, - 110 + 115 ] } ] diff --git a/setup.sh b/setup.sh index f9d4966..ec2a6cd 100644 --- a/setup.sh +++ b/setup.sh @@ -92,7 +92,12 @@ while true; do read -p "What hostnames should this server answer to? " inputServerName case "${inputServerName}" in '') - break + # check that at least one name as been provided + if [ -z "${serverNames_working}" ]; then + echo -e "\n${err}You must provide at least one hostname${norm}" + else + break + fi ;; [Xx]*) echo -e "\n${cyan}---exiting---\n${norm}"