From 40e5ce472160762718a3e6de9390404cbd80545a Mon Sep 17 00:00:00 2001 From: Robert Bruce Park Date: Tue, 26 Nov 2013 13:02:29 -0800 Subject: [PATCH] Use bash : noop for efficiency. --- rsync_tmbackup.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rsync_tmbackup.sh b/rsync_tmbackup.sh index ed203b6..4078916 100644 --- a/rsync_tmbackup.sh +++ b/rsync_tmbackup.sh @@ -127,7 +127,7 @@ if [ -f "$INPROGRESS_FILE" ]; then fi # Run in a loop to handle the "No space left on device" logic. -while [ "1" ]; do +while : ; do # ----------------------------------------------------------------------------- # Check if we are doing an incremental backup (if previous backup exists) or not @@ -167,7 +167,7 @@ while [ "1" ]; do [ -n "$stamp" ] || continue if [ $stamp -ge $KEEP_ALL_DATE ]; then - true + : # Don't expire any backups in this range elif [ $stamp -ge $KEEP_DAILIES_DATE ]; then # Delete all but the most recent of each day.