Commit 009264f9 authored by jochen@chromium.org's avatar jochen@chromium.org

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
parent d2d18614
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment