Use bash : noop for efficiency.

This commit is contained in:
Robert Bruce Park
2013-11-26 13:02:29 -08:00
parent e5f939222e
commit 40e5ce4721
+2 -2
View File
@@ -127,7 +127,7 @@ if [ -f "$INPROGRESS_FILE" ]; then
fi fi
# Run in a loop to handle the "No space left on device" logic. # 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 # Check if we are doing an incremental backup (if previous backup exists) or not
@@ -167,7 +167,7 @@ while [ "1" ]; do
[ -n "$stamp" ] || continue [ -n "$stamp" ] || continue
if [ $stamp -ge $KEEP_ALL_DATE ]; then if [ $stamp -ge $KEEP_ALL_DATE ]; then
true : # Don't expire any backups in this range
elif [ $stamp -ge $KEEP_DAILIES_DATE ]; then elif [ $stamp -ge $KEEP_DAILIES_DATE ]; then
# Delete all but the most recent of each day. # Delete all but the most recent of each day.