From: Sergey Matveev Date: Fri, 17 Feb 2023 18:57:56 +0000 (+0300) Subject: POSIX shell does not support {a,b,c} substitutions X-Git-Url: http://www.git.stargrave.org/?p=feeder.git;a=commitdiff_plain;h=0424e5f0a1569f6735ca6bad70c108203379fa09 POSIX shell does not support {a,b,c} substitutions For example native FreeBSD's sh will create "{cur,new,tmp}" directory literally. --- diff --git a/opml2feeds b/opml2feeds index 36ccc96..f033040 100755 --- a/opml2feeds +++ b/opml2feeds @@ -7,7 +7,7 @@ set -e 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 + mkdir -p "$dir"/cur "$dir"/new "$dir"/tmp # make it maildir echo "$url" > $dir/url echo $dir done