Quote:
Originally Posted by BubbaJoe
I believe you have to use the -a parameter on the diff command to compare binaries.
|
It worked, but now even if archive.tar and backup.tar are the same, it says their different and it runs the first block, instead of just doing the echo which states "Files the same, exiting";
Code:
diff archive.tar backup.tar > tmp
if [ -a tmp ]; then
/tmp/abcQATest/abcMoveTest.sh archive.tar /tmp/archive.tar
echo "Files different, transferring files"
cat archive.tar > backup.tar
else
echo "Files the same, exiting";
fi