Exiting with failure when install script fails.

This commit is contained in:
Roland 2022-03-13 11:02:55 -06:00
parent 6607ef450b
commit 70c972a046
No known key found for this signature in database
GPG key ID: 9D6DBD3ACF11AB93

View file

@ -47,6 +47,9 @@ git clone https://github.com/lrnselfreliance/wrolpi.git /opt/wrolpi || :
(cd /opt/wrolpi && git fetch && git checkout "${BRANCH}" && git reset --hard origin/"${BRANCH}") || exit 4
/opt/wrolpi/scripts/ubuntu_20.04_install.sh 2>&1 | tee /opt/wrolpi/install.log
install_code=$?
set +x
echo "Install end $(date '+%Y-%m-%d %H:%M:%S')" >>/opt/wrolpi/install.log
exit $?
exit ${install_code}