Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15561050
D14755.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
313 B
Referenced Files
None
Subscribers
None
D14755.diff
View Options
diff --git a/scripts/repository/binary_safe_diff.sh b/scripts/repository/binary_safe_diff.sh
--- a/scripts/repository/binary_safe_diff.sh
+++ b/scripts/repository/binary_safe_diff.sh
@@ -1,6 +1,8 @@
#!/bin/sh
diff "$@"
-if [ "$?" = "2" ]; then
+RES="$?"
+if [ "$RES" = "2" ]; then
exit 1
fi
+exit "$RES"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 30, 5:53 PM (1 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7712132
Default Alt Text
D14755.diff (313 B)
Attached To
Mode
D14755: Preserve the exit code of the diff command in binary_safe_diff.sh
Attached
Detach File
Event Timeline
Log In to Comment