diff options
author | Karel Kočí <cynerd@email.cz> | 2022-06-23 10:47:44 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-06-23 10:47:44 +0200 |
commit | c3cc932f4b1950b1633af02f510d47b9c19d0863 (patch) | |
tree | 351487cbbb969b9e5f8b8f6827a8e2ce13ab1bbe /local/bin/allsync | |
parent | 267c6dc9247757e4fbf2f06514182bb7b3cee511 (diff) | |
download | myconfigs-c3cc932f4b1950b1633af02f510d47b9c19d0863.tar.gz myconfigs-c3cc932f4b1950b1633af02f510d47b9c19d0863.tar.bz2 myconfigs-c3cc932f4b1950b1633af02f510d47b9c19d0863.zip |
Multiple tweaks
Diffstat (limited to 'local/bin/allsync')
-rwxr-xr-x | local/bin/allsync | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/local/bin/allsync b/local/bin/allsync index e5bb633..db64b4e 100755 --- a/local/bin/allsync +++ b/local/bin/allsync @@ -126,4 +126,8 @@ sec "Passwords" pass git pull || fail "Passwords pull failed" pass git push || fail "Passwords push failed" -exit $ecode +if [ "${AUTORUN:-n}" = "y" ]; then + echo "Reported failure exit code: $ecode" >&2 +else + exit $ecode +fi |