]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
parsemail-batch: Replace tabs with spaces
authorStephen Finucane <stephen@that.guru>
Fri, 7 Oct 2016 17:58:03 +0000 (18:58 +0100)
committerStephen Finucane <stephen@that.guru>
Fri, 7 Oct 2016 17:58:03 +0000 (18:58 +0100)
Let's keep our Bash scripts consistent with our Python.

Signed-off-by: Stephen Finucane <stephen@that.guru>
patchwork/bin/parsemail-batch.sh

index 06de3d77ac95984ea5ee45b7d1da892a46d2d01a..c94655bf459096a0b5799ad459f7e5f88657d625 100755 (executable)
@@ -23,8 +23,8 @@ PATCHWORK_BINDIR=`dirname $0`
 
 if [ $# -lt 1 ]
 then
-       echo "usage: $0 <dir> [options]" >&2
-       exit 1
+    echo "usage: $0 <dir> [options]" >&2
+    exit 1
 fi
 
 mail_dir="$1"
@@ -33,8 +33,8 @@ echo "dir: $mail_dir"
 
 if [ ! -d "$mail_dir" ]
 then
-       echo "$mail_dir should be a directory"? >&2
-       exit 1
+    echo "$mail_dir should be a directory"? >&2
+    exit 1
 fi
 
 shift
@@ -42,6 +42,6 @@ shift
 ls -1rt "$mail_dir" |
 while read line;
 do
-       echo $line
-       $PATCHWORK_BINDIR/parsemail.sh $@ < "$mail_dir/$line"
+    echo $line
+    $PATCHWORK_BINDIR/parsemail.sh $@ < "$mail_dir/$line"
 done