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 $_;
|
||||
}
|
||||
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…
Reference in New Issue
Block a user