Correctly forward error code when git pull fails in crup-runner.sh

The old code would always exit 0, because it returned the exit status of the if command

BUG=none
TEST=try to run git crup in src/ with unstaged changes. Should bail out and not run hooks
R=szager@chromium.org


Review URL: https://chromiumcodereview.appspot.com/12040046

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@178356 0039d316-1c4b-4281-b951-d872f2087c98
experimental/szager/collated-output
jochen@chromium.org 13 years ago
parent d2d1861474
commit 009264f9cc

@ -79,8 +79,9 @@ if [ "$solution" = "$1" ]; then
fi
shift 2
$first_args $@ | sed "s/^/[$solution] /g" 1>&2
if [ $? -ne 0 ]; then
exit $?
status=$?
if [ "$status" -ne 0 ]; then
exit $status
fi
set_target_os

Loading…
Cancel
Save