From c3cc932f4b1950b1633af02f510d47b9c19d0863 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 23 Jun 2022 10:47:44 +0200 Subject: Multiple tweaks --- local/bin/allsync | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'local/bin/allsync') 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 -- cgit v1.2.3