diff --git a/ct/homeassistant-core-v5.sh b/ct/homeassistant-core-v5.sh
index 5ac794f16..cfe06b128 100644
--- a/ct/homeassistant-core-v5.sh
+++ b/ct/homeassistant-core-v5.sh
@@ -403,7 +403,9 @@ msg_ok "Completed Successfully!\n"
 echo -e "FileBrowser should be reachable by going to the following URL.
          ${BL}http://$IP:8080${CL} \n"
 exit
+fi
 }
+
 clear
 if ! command -v pveversion >/dev/null 2>&1; then update_script; else install_script; fi
 if [ "$VERB" == "yes" ]; then set -x; fi