mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
if diff -u makes zero output, try diff -c instead
This commit is contained in:
parent
8cf1786296
commit
9fb253388b
@ -220,7 +220,11 @@ sub showdiff {
|
|||||||
print TEMP $_;
|
print TEMP $_;
|
||||||
}
|
}
|
||||||
close(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;
|
return @out;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user