wierd bug from teir 1 mirror
This commit is contained in:
1 parent
49edd17efe
commit
d835155f98
1 file changed
+5
-5
+5
-5
@@ -25,10 +25,9 @@ exec 9>"${lock}"
|
||||
flock -n 9 || exit
|
||||
|
||||
# only run rsync when there are changes
|
||||
#if diff -b <(curl -s "$lastupdate_url") "$target/lastupdate" >/dev/null; then
|
||||
# echo "rsync was not needed" >> $logfile
|
||||
# date +%s > $target/lastsync
|
||||
#else
|
||||
if diff -b <(curl -s "$lastupdate_url") "$target/lastupdate" >/dev/null; then
|
||||
echo "rsync was not needed" >> $logfile
|
||||
else
|
||||
echo "running rsync" >> $logfile
|
||||
|
||||
if ! stty &>/dev/null; then
|
||||
@@ -41,8 +40,9 @@ flock -n 9 || exit
|
||||
--exclude='*.links.tar.gz*' \
|
||||
${source} \
|
||||
"${target}" &>> $logfile || fatal "Failed to sync."
|
||||
#fi
|
||||
fi
|
||||
|
||||
date +%s > $target/lastsync
|
||||
echo "lastsync: $(date -d @$(cat ${target}/lastsync))" >> $logfile
|
||||
|
||||
|
||||
Reference in new issue
Block a user