Exit with code 50 if upgrade fail

This commit is contained in:
Jeremy Gardais 2020-06-18 17:03:57 +02:00
parent 8daa80803d
commit d133af4fed
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 3 additions and 1 deletions

View File

@ -256,7 +256,9 @@ main() { # {{{
&& exit 0
## Try to upgrade the system
upgrade_system
### Exit 50 if any error in returned value
upgrade_system \
|| exit 50
## If Maco upgrade is present
### Exit (and leave Maco manage required reboot if present)