added some nice output to log
This commit is contained in:
1 parent
4d16cfefe0
commit
b82ed152dc
1 file changed
+3
-2
+3
-2
@@ -22,10 +22,11 @@ flock -n 9 || exit
|
||||
|
||||
# only run rsync when there are changes
|
||||
if diff -b <(curl -s "$lastupdate_url") "$target/lastupdate" >/dev/null; then
|
||||
date +%s > $target/lastsync
|
||||
echo "Sync was not needed" >> /opt/scripts/archlinux.log
|
||||
|
||||
date +%s > $target/lastsync
|
||||
else
|
||||
echo "Syncing" >> /opt/scripts/archlinux.log
|
||||
|
||||
if ! stty &>/dev/null; then
|
||||
QUIET="-q"
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user