my website
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

that argument reading can be done in a simpler way

chfour 869a3da4 e8e0dfa8

+2 -3
+2 -3
buildblog.sh
··· 50 50 jq '.title' <<<"$meta" 51 51 52 52 # with help from domi https://donotsta.re/objects/b84298d7-582f-4b42-9bbd-bc5636a2b9fb 53 - pandoc_args=() 54 - while read -r -d '' arg; do pandoc_args+=("$arg"); done < \ 55 - <(jq --raw-output0 '.["$pandoc-args"][], .["$input"], "-o", .["$output"]' <<<"$meta") 53 + # and https://www.shellcheck.net/wiki/SC2046 54 + mapfile -d '' pandoc_args < <(jq --raw-output0 '.["$pandoc-args"][], .["$input"], "-o", .["$output"]' <<<"$meta") 56 55 57 56 pushd "$post" >/dev/null 58 57 pandoc_error=0