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
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user