print diff in check

This commit is contained in:
Maxime Gimeno 2019-06-06 16:56:14 +02:00
parent 39d81a8d68
commit 33c9a0833f
1 changed files with 3 additions and 2 deletions

View File

@ -24,7 +24,7 @@ do
echo "$f " >> ./tmp.txt echo "$f " >> ./tmp.txt
fi fi
done done
LC_COLLATE=C sort ./tmp.txt > ./.travis/packages.txt LC_ALL=C sort ./tmp.txt > ./.travis/packages.txt
rm ./tmp.txt rm ./tmp.txt
while read p; do while read p; do
PACKAGES[$INDEX]+="$p " PACKAGES[$INDEX]+="$p "
@ -77,7 +77,8 @@ IFS=$' '
#check if there are differences between the files #check if there are differences between the files
if ! cmp -s ./.travis.yml ./.travis.old; if ! cmp -s ./.travis.yml ./.travis.old;
then then
echo ".travis.yml has changed" echo ".travis.yml has changed : "
diff ./.travis.yml ./.travis.old
if [ -n "$CHECK" ]; then if [ -n "$CHECK" ]; then
echo "You should modify the file .travis/template.txt" echo "You should modify the file .travis/template.txt"
exit 1 exit 1