mirror of
https://github.com/franjsco/rsync-linux-home
synced 2025-01-03 10:30:26 +01:00
Fix #1: exit status code doesn't work
This commit is contained in:
parent
4e5149e58c
commit
6c56165846
@ -95,10 +95,12 @@ def execute_backup(cmd):
|
||||
print("> Backup Aborted")
|
||||
print('Error rsync')
|
||||
print("Exit code: {}".format(sperror.args[0]))
|
||||
exit(sperror.args[0])
|
||||
except Exception as exception:
|
||||
print("> Backup Aborted")
|
||||
print('Error')
|
||||
print(exception)
|
||||
exit(1)
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user