Update diff tool
This commit is contained in:
parent
454ff1fdb7
commit
048282689b
1 changed files with 7 additions and 1 deletions
|
@ -6,6 +6,12 @@ F2="$2"
|
|||
TMPF1=`tempfile`
|
||||
TMPF2=`tempfile`
|
||||
|
||||
if which colordiff; then
|
||||
DIFF=colordiff
|
||||
else
|
||||
DIFF=diff
|
||||
fi
|
||||
|
||||
if [ "z$F1" == "z" ]; then
|
||||
echo "Requies argument"
|
||||
exit 1
|
||||
|
@ -21,7 +27,7 @@ else
|
|||
cat "$F2" | bunzip2 > "$TMPF2"
|
||||
fi
|
||||
|
||||
colordiff "$TMPF1" "$TMPF2"
|
||||
$DIFF "$TMPF1" "$TMPF2"
|
||||
|
||||
rm "$TMPF1" "$TMPF2"
|
||||
|
||||
|
|
Loading…
Reference in a new issue