From: Daniel Axtens Date: Wed, 8 Feb 2017 04:16:58 +0000 (+1100) Subject: Fix double use of mail directory in parsemail-batch.sh X-Git-Tag: v2.0.0-rc1~93 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3afa6abcc76948d652da3b353eec6d7ff54bf6eb;p=thirdparty%2Fpatchwork.git Fix double use of mail directory in parsemail-batch.sh 2d142b2c0a27 ("bin: Run scripts through shellcheck") changes an ls to a find. find output includes the directory name, unlike ls. This breaks the script, because it prepends the mail directory later on. Remove the prepending in the script - leave it exclusively to find. Signed-off-by: Daniel Axtens Reviewed-by: stephen@that.guru Fixes: 2d142b2c0a27 ("bin: Run scripts through shellcheck") --- diff --git a/patchwork/bin/parsemail-batch.sh b/patchwork/bin/parsemail-batch.sh index 85367910..d42712ed 100755 --- a/patchwork/bin/parsemail-batch.sh +++ b/patchwork/bin/parsemail-batch.sh @@ -40,5 +40,5 @@ shift find "$mail_dir" -maxdepth 1 | while read -r line; do echo "$line" - "$BIN_DIR/parsemail.sh" "$@" < "$mail_dir/$line" + "$BIN_DIR/parsemail.sh" "$@" < "$line" done