1
0
mirror of https://github.com/franjsco/rsync-linux-home synced 2025-06-27 09:03:11 +02:00

1 Commits
v0.1 ... v0.1.1

Author SHA1 Message Date
6c56165846 Fix #1: exit status code doesn't work 2019-04-13 12:22:55 +02:00

View File

@ -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)