From 3ff183a8b8c8534aabc87aed38716099467fe938 Mon Sep 17 00:00:00 2001 From: "root@saturn" Date: Fri, 29 Apr 2016 15:16:59 +0200 Subject: [PATCH] OCD on log... --- archlinux.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/archlinux.sh b/archlinux.sh index 6599251..03b90b3 100755 --- a/archlinux.sh +++ b/archlinux.sh @@ -22,10 +22,10 @@ flock -n 9 || exit # only run rsync when there are changes if diff -b <(curl -s "$lastupdate_url") "$target/lastupdate" >/dev/null; then - echo "Sync was not needed" >> /opt/scripts/archlinux.log + echo "rsync was not needed" >> /opt/scripts/archlinux.log date +%s > $target/lastsync else - echo "Syncing" >> /opt/scripts/archlinux.log + echo "running rsync" >> /opt/scripts/archlinux.log if ! stty &>/dev/null; then QUIET="-q" @@ -39,6 +39,6 @@ else "${target}" &>> /opt/scripts/archlinux.log || fatal "Failed to sync, se /opt/scripts/archlinux.log for more info." fi -echo "Last sync was $(date -d @$(cat ${target}/lastsync))" >> /opt/scripts/archlinux.log +echo "lastsync: $(date -d @$(cat ${target}/lastsync))" >> /opt/scripts/archlinux.log