Commit 9fb25338 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

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

parent 8cf17862
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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;
}