summaryrefslogtreecommitdiffstats
path: root/diffscript
blob: 1868bb6bf18e77481655a7ab08e4b7956a2cf6b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
echo "Comparing Repository files..."
cd $1/repository/$2
rm -f repository.log
retCode=0
for i in `find ./ -type f`
do
    echo "Comparing " $i >> repository.log
    diff $i ../../../repository.old/$2/$i >> repository.log
    if [ $? -eq 1 ] ;then
        retCode=1
        echo "Files are different" >> repository.log
    fi
done
if [ retCode -eq 1 ] ;then
    echo +++ Test failed +++
else
    echo +++ Test passed +++
fi