diff options
author | Jan Schmidt <thaytan@noraisin.net> | 2009-05-25 16:58:51 +0100 |
---|---|---|
committer | Jan Schmidt <thaytan@noraisin.net> | 2009-05-25 16:58:51 +0100 |
commit | 9996f728e7aa207cafd904c2d2ed87fe02c9accc (patch) | |
tree | fd87a7f2160f19a3aed727f30c08c1a1a710dda1 | |
parent | 888e0a268b60904dd208b672a3c57f1ff7d9786c (diff) |
check-exports: Use the return code of diff rather than the output
diff on Solaris prints 'No differences found' for matching files, which
makes the check-exports call fail regardless of whether the exports match
or not. Instead, use the return code of diff, which is 0 when the files match.
-rwxr-xr-x | check-exports | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/check-exports b/check-exports index cd829b0..c6d3eca 100755 --- a/check-exports +++ b/check-exports @@ -58,10 +58,11 @@ nm $NMARGS $lib_path | awk \ > $lib_result diffoutput=`diff -u $def_path $lib_result` +diffresult=$? rm $lib_result -if test "x$diffoutput" = "x"; then +if test "$diffresult" -eq 0; then exit 0; else echo -n "$diffoutput" >&2 |