install_dehydrated.sh: halt script if git clone fpr dehydrated failed instead of exit script.

This commit is contained in:
2026-09-11 21:09:47 +02:00
parent 0719872b94
commit 40588b434c
+15
View File
@@ -925,6 +925,21 @@ else
echo_ok echo_ok
else else
echo_failed 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.." fatal "Cloning git repositors \"dehydrated.git\" failed!. Exciting install script.."
fi fi
fi fi