Skip to content
Snippets Groups Projects
Commit 9fb25338 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

if diff -u makes zero output, try diff -c instead

parent 8cf17862
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment