mirror of
https://github.com/curl/curl.git
synced 2026-07-24 03:27:22 +03:00
if diff -u makes zero output, try diff -c instead
This commit is contained in:
parent
8cf1786296
commit
9fb253388b
1 changed files with 5 additions and 1 deletions
|
|
@ -220,7 +220,11 @@ sub showdiff {
|
|||
print TEMP $_;
|
||||
}
|
||||
close(TEMP);
|
||||
my @out = `diff -u $file2 $file1`;
|
||||
my @out = `diff -u $file2 $file1 2>/dev/null`;
|
||||
|
||||
if(!$out[0]) {
|
||||
@out = `diff -c $file2 $file1 2>/dev/null`;
|
||||
}
|
||||
|
||||
return @out;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue