From: Richard Hartmann Date: Sun, 27 Aug 2017 19:28:10 +0000 (+0200) Subject: Merge pull request #224 from danielshahaf/completion-fix-error-code-v1 X-Git-Url: https://git.madduck.net/code/vcsh.git/commitdiff_plain/6b5ef0253b6858e3cb4fd265d2f7d99b597065ee?hp=3c5bb9b0993011e30695dae011daa7b861847f11 Merge pull request #224 from danielshahaf/completion-fix-error-code-v1 completion: Return the correct error code from __vcsh_*. --- diff --git a/_vcsh b/_vcsh index 6880f72..1661e19 100644 --- a/_vcsh +++ b/_vcsh @@ -142,7 +142,7 @@ function _vcsh () { GIT_DIR=$VCSH_REPO_D/$words[1].git _dispatch git git else curcontext="${curcontext%:*:*}:vcsh-${vcshcommand}:" - _call_function ret _vcsh-${vcshcommand} + _call_function ret _vcsh-${vcshcommand} && (( ret )) fi fi fi