mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-09 16:32:39 +01:00
Simplify diff exit code handling.
Summary: This fixes T9970 in an alternate manner, with the same effect: the binary_safe_diff.sh script returns 0 if the diff succeeds, 1 in all other cases. Test Plan: Tested locally with a fixed binary_safe_diff.sh, resulting in this correct review: https://reviews.freebsd.org/D4542 Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: eadler, Korvin, stevenh Maniphest Tasks: T9970 Differential Revision: https://secure.phabricator.com/D14759
This commit is contained in:
parent
97056a3b85
commit
7d25fcdbdb
1 changed files with 1 additions and 6 deletions
|
@ -1,8 +1,3 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
diff "$@"
|
diff "$@" || exit 1
|
||||||
RES="$?"
|
|
||||||
if [ "$RES" = "2" ]; then
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
exit "$RES"
|
|
||||||
|
|
Loading…
Reference in a new issue