From 0c0d4998cee736c283f6870dbd62b239722cad44 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 5 Oct 2014 00:46:09 +0200 Subject: [PATCH] Slightly more consistent coding style. --- backup.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/backup.sh b/backup.sh index 0e23039..c3143d7 100755 --- a/backup.sh +++ b/backup.sh @@ -202,8 +202,7 @@ if ! ssh root@$computer "[ ! -f /root/.backup/preexec ] || /bin/bash -x /root/.b diemsg "Could not run $computer:/root/.backup/preexec" fi -for filesystem in $filesystems -do +for filesystem in $filesystems; do # Remove / and $ (for Windows) for path names sfilesystem=`echo $filesystem | tr '\/\$' '__'` @@ -254,8 +253,7 @@ do fi # Delete old full backups - for full in `ls -1t $storagedir/$computer/$sfilesystem/full/*tgz | tail -n +$mf` - do + for full in `ls -1t $storagedir/$computer/$sfilesystem/full/*tgz | tail -n +$mf`; do prefix=`echo $full | sed "s/\.[^.]*$//"` echo `date`": $computer:$filesystem Deleting full backup $prefix" >&2 rm $prefix* -- 2.39.2