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 <dja@axtens.net>
Reviewed-by: stephen@that.guru
Fixes: 2d142b2c0a27 ("bin: Run scripts through shellcheck")
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