Let's keep our Bash scripts consistent with our Python.
Signed-off-by: Stephen Finucane <stephen@that.guru>
if [ $# -lt 1 ]
then
- echo "usage: $0 <dir> [options]" >&2
- exit 1
+ echo "usage: $0 <dir> [options]" >&2
+ exit 1
fi
mail_dir="$1"
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
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