From 40588b434c48b140f4a67571447f3a15b2bc873c Mon Sep 17 00:00:00 2001 From: Christoph Date: Fri, 11 Sep 2026 21:09:47 +0200 Subject: [PATCH] install_dehydrated.sh: halt script if git clone fpr dehydrated failed instead of exit script. --- install_dehydrated.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/install_dehydrated.sh b/install_dehydrated.sh index 65f3d70..d576573 100755 --- a/install_dehydrated.sh +++ b/install_dehydrated.sh @@ -925,6 +925,21 @@ else echo_ok else echo_failed + error "Cloning git repositors \"dehydrated.git\" failed!" + + echo "" + echo " Command was: git clone https://github.com/lukas2511/dehydrated.git $DH_INSTALL_DIR" + echo "" + + echo "" + echononl "\033[1mcontinue anyway\033[m [yes/no]: " + read OK + while [[ "${OK,,}" != "yes" ]] && [[ "${OK,,}" != "no" ]] ; do + echononl "Wrong entry! - repeat [yes/nno]: " + read OK + done + [[ $OK = "yes" ]] || fatal "Abbruch durch User" + fatal "Cloning git repositors \"dehydrated.git\" failed!. Exciting install script.." fi fi