From 5fe7333814e69b2e4598080d0ee3f5812428623d Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Fri, 17 Feb 2023 21:55:12 +0300 Subject: [PATCH] Use stdin for simplicity and flexibility "opml2feeds < file.opml" instead of "opml2feeds file.opml", without requiring file.opml existence on filesystem. --- opml2feeds | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opml2feeds b/opml2feeds index 2e6022e..36ccc96 100755 --- a/opml2feeds +++ b/opml2feeds @@ -4,7 +4,7 @@ # The folder name will be the title as defined in the @text attr set -e -cat $1 | xq '.opml.body.outline[]' -rc | while read outline ; do +xq '.opml.body.outline[]' -rc | while read outline ; do url=$(echo $outline | jq '."@xmlUrl"' -r) dir=$(echo $outline | jq '."@text"' -r) mkdir -p "$dir"/{cur,new,tmp} # make it maildir -- 2.44.0