mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-10-26 02:48:38 -04:00
Exiting with failure when install script fails.
This commit is contained in:
parent
6607ef450b
commit
70c972a046
1 changed files with 4 additions and 1 deletions
|
|
@ -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}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue