Skip to content

Commit

Permalink
Fix double use of mail directory in parsemail-batch.sh
Browse files Browse the repository at this point in the history
2d142b2 ("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 <dja@axtens.net>
Reviewed-by: stephen@that.guru
Fixes: 2d142b2 ("bin: Run scripts through shellcheck")
  • Loading branch information
daxtens authored and stephenfin committed Feb 8, 2017
1 parent 83a63a2 commit 3afa6ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion patchwork/bin/parsemail-batch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3afa6ab

Please sign in to comment.