From dc3d68c24af006fb35d32043df6d8a710ea8a145 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 5 Oct 2014 19:31:58 +0200 Subject: [PATCH] More if/then consistency fixes. --- backup.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/backup.sh b/backup.sh index 5e0cfb5..b17ad65 100755 --- a/backup.sh +++ b/backup.sh @@ -77,8 +77,7 @@ backup() SNARFILE="${storagedir}/${computer}/${sfilesystem}/.incremental.snar" incrementalsnar="/root/.backup/${sfilesystem}.snar" - if [ "$backuplevel" = "daglig" ] - then + if [ "$backuplevel" = "daglig" ]; then # If incremental backup, we need to copy the incremental status to $computer. # If it does not exist, whine a bit and then run date-based instead. if [ -s "$SNARFILE" ]; then @@ -217,8 +216,7 @@ for filesystem in $filesystems; do # Default backuplevel backuplevel=daglig - if [ ! -s $storagedir/$computer/$sfilesystem/.date ] - then + if [ ! -s $storagedir/$computer/$sfilesystem/.date ]; then # Take the first full backup of this filesystem on this computer backuplevel=full fi -- 2.39.2