Browse Source

Update diff tool

remotes/origin/vysl
Tomas Gavenciak 9 years ago
parent
commit
048282689b
  1. 8
      diff_db_backup.sh

8
diff_db_backup.sh

@ -6,6 +6,12 @@ F2="$2"
TMPF1=`tempfile` TMPF1=`tempfile`
TMPF2=`tempfile` TMPF2=`tempfile`
if which colordiff; then
DIFF=colordiff
else
DIFF=diff
fi
if [ "z$F1" == "z" ]; then if [ "z$F1" == "z" ]; then
echo "Requies argument" echo "Requies argument"
exit 1 exit 1
@ -21,7 +27,7 @@ else
cat "$F2" | bunzip2 > "$TMPF2" cat "$F2" | bunzip2 > "$TMPF2"
fi fi
colordiff "$TMPF1" "$TMPF2" $DIFF "$TMPF1" "$TMPF2"
rm "$TMPF1" "$TMPF2" rm "$TMPF1" "$TMPF2"

Loading…
Cancel
Save