[perltidy]
authorHeiko Schlittermann (JUMPER) <hs@schlittermann.de>
Wed, 29 Jul 2015 14:53:32 +0200
changeset 4 265aec94f00b
parent 3 a9147d0306dd
child 5 8cb14f16d955
[perltidy]
scripts/pg-backup
--- a/scripts/pg-backup	Wed Jul 29 14:51:46 2015 +0200
+++ b/scripts/pg-backup	Wed Jul 29 14:53:32 2015 +0200
@@ -63,17 +63,17 @@
             }
         }
         else {
-			@clusters;
-		}
+            @clusters;
+        }
       };
 
-	# check for consistency
-	if (@ARGV == 1 and !@tasks) {
-		die "$0: no tasks for version $ARGV[0]\n";
-	}
-	elsif (@ARGV > 1 and @tasks < @ARGV - 1) {
-		die "$0: no tasks for version $ARGV[0] and clusters @ARGV[1..$#ARGV]\n";
-	}
+    # check for consistency
+    if (@ARGV == 1 and !@tasks) {
+        die "$0: no tasks for version $ARGV[0]\n";
+    }
+    elsif (@ARGV > 1 and @tasks < @ARGV - 1) {
+        die "$0: no tasks for version $ARGV[0] and clusters @ARGV[1..$#ARGV]\n";
+    }
 
     # now get the real jobe done
     # run for all tasks, regardless of errors
@@ -83,7 +83,7 @@
         rmdir glob("$opt_basedir/*");
         mkdir $task->{dirname}
           or die "$0: Can't mkdir $task->{dirname}: $!\n"
-	  	  unless $opt_dry;
+          unless $opt_dry;
 
         my @cmd = (
             pg_basebackup => '--format' => 't',