]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
parsemail.sh: Fix usage via stdin.
authorRalf Baechle <ralf@linux-mips.org>
Tue, 14 Mar 2017 18:09:12 +0000 (19:09 +0100)
committerStephen Finucane <stephen@that.guru>
Tue, 21 Mar 2017 20:34:50 +0000 (20:34 +0000)
Commit e56391f66cb8 ("trivial: Standardize variable naming in scripts")
sneaked in a checked for missing command line arguments in parsemail.sh
which broke typical argument-less usage for mail delivery.  Revert that
again.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Reviewed-by: Stephen Finucane <stephen@that.guru>
Fixes: e56391f6 ("trivial: Standardize variable naming in scripts")
patchwork/bin/parsemail.sh

index 5d1672eee1100574f70d5e0b735178030aba3b9b..a742f60e54324ab8cf99a33dbd1560ed543def04 100755 (executable)
 BIN_DIR=$(dirname "$0")
 PATCHWORK_BASE=$(readlink -e "$BIN_DIR/../..")
 
-if [ $# -lt 1 ]; then
-    echo "usage: $0 <file> [options]" >&2
-    exit 1
-fi
-
 if [ -z "$PW_PYTHON" ]; then
     PW_PYTHON=python2
 fi