install_dehydrated.sh: halt script if git clone fpr dehydrated failed instead of exit script.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user