Permalink
Browse files

Use diff -u for easier to read output

  • Loading branch information...
1 parent 0f41522 commit 5113ff646ca8f1d7b6c361f9fcf862888063960f @evansj evansj committed Aug 23, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 compare.sh
View
@@ -50,7 +50,7 @@ echo "-- Comparing creation scripts"
for file in $DIAL/*
do
name=`basename $file`
- changed=`diff -wBb <(grep -ve "^--" $DIAL_H2/$name) <(grep -ve "^--" $file)`
+ changed=`diff -uwBb <(grep -ve "^--" $DIAL_H2/$name) <(grep -ve "^--" $file)`
if [ "x$changed" != "x" ]
then
echo $'\e[00;31m'$name$'\e[00m changed:'
@@ -66,7 +66,7 @@ echo "-- Comparing SQL maps"
for file in $SQLMAP/*
do
name=`basename $file`
- changed=`diff -wBb <(cat $SQLMAP_H2/$name | sed '/<!--/,/-->/d') <(cat $file | sed '/<!--/,/-->/d')`
+ changed=`diff -uwBb <(cat $SQLMAP_H2/$name | sed '/<!--/,/-->/d') <(cat $file | sed '/<!--/,/-->/d')`
if [ "x$changed" != "x" ]
then
echo $'\e[00;31m'$name$'\e[00m changed:'

0 comments on commit 5113ff6

Please sign in to comment.