From: Ralf Baechle Date: Tue, 14 Mar 2017 18:09:12 +0000 (+0100) Subject: parsemail.sh: Fix usage via stdin. X-Git-Tag: v2.0.0-rc1~59 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03ff2f51d9a59fa6e118362dc0e07ecd17a4cabb;p=thirdparty%2Fpatchwork.git parsemail.sh: Fix usage via stdin. 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 Reviewed-by: Stephen Finucane Fixes: e56391f6 ("trivial: Standardize variable naming in scripts") --- diff --git a/patchwork/bin/parsemail.sh b/patchwork/bin/parsemail.sh index 5d1672ee..a742f60e 100755 --- a/patchwork/bin/parsemail.sh +++ b/patchwork/bin/parsemail.sh @@ -22,11 +22,6 @@ BIN_DIR=$(dirname "$0") PATCHWORK_BASE=$(readlink -e "$BIN_DIR/../..") -if [ $# -lt 1 ]; then - echo "usage: $0 [options]" >&2 - exit 1 -fi - if [ -z "$PW_PYTHON" ]; then PW_PYTHON=python2 fi