|
|
@ -13,7 +13,6 @@ source /usr/local/bin/functions.sh
|
|
|
|
|
|
|
|
|
|
|
|
filename="website.zip"
|
|
|
|
filename="website.zip"
|
|
|
|
hashfilename="hashfile"
|
|
|
|
hashfilename="hashfile"
|
|
|
|
touch $HASHFILEDIR/$hashfilename
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# create empty hashfile
|
|
|
|
# create empty hashfile
|
|
|
|
# download website data
|
|
|
|
# download website data
|
|
|
@ -32,6 +31,7 @@ get-website-data $filename
|
|
|
|
|
|
|
|
|
|
|
|
echo "Check for new content"
|
|
|
|
echo "Check for new content"
|
|
|
|
currentHash=$( print-hash-from-file $filename )
|
|
|
|
currentHash=$( print-hash-from-file $filename )
|
|
|
|
|
|
|
|
touch $HASHFILEDIR/$hashfilename
|
|
|
|
if [[ $currentHash == $(cat $HASHFILEDIR/$hashfilename) ]]
|
|
|
|
if [[ $currentHash == $(cat $HASHFILEDIR/$hashfilename) ]]
|
|
|
|
then
|
|
|
|
then
|
|
|
|
echo "Nothing to do"
|
|
|
|
echo "Nothing to do"
|
|
|
|