mirror of
https://github.com/franjsco/rsync-linux-home
synced 2025-01-05 11:38:32 +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("> Backup Aborted")
|
||||||
print('Error rsync')
|
print('Error rsync')
|
||||||
print("Exit code: {}".format(sperror.args[0]))
|
print("Exit code: {}".format(sperror.args[0]))
|
||||||
|
exit(sperror.args[0])
|
||||||
except Exception as exception:
|
except Exception as exception:
|
||||||
print("> Backup Aborted")
|
print("> Backup Aborted")
|
||||||
print('Error')
|
print('Error')
|
||||||
print(exception)
|
print(exception)
|
||||||
|
exit(1)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user