From 763146043e762ea5b914b56cbef190151fa23138 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uro=C5=A1=20Golja?= Date: Sat, 24 Dec 2016 01:12:35 +0100 Subject: [PATCH] Make yadm exit with the return value of git. --- yadm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/yadm b/yadm index 8914183..ac90a22 100755 --- a/yadm +++ b/yadm @@ -86,13 +86,14 @@ function main() { else #; any other commands are simply passed through to git git_command "$@" + local git_retval="$?" fi #; process automatic events auto_alt auto_perms - exit 0 + exit $git_retval } @@ -299,9 +300,10 @@ function git_command() { #; pass commands through to git git "$@" + local git_retval="$?" CHANGES_POSSIBLE=1 - + return $git_retval } function help() {