Use shopt -s lastpipe to try to make readarray work
1 files changed, 4 insertions(+), 1 deletions(-) M mkfeed
M mkfeed => mkfeed +4 -1
@@ 1,11 1,14 @@ #!/usr/bin/env bash set -euo pipefail # make piping into readarray work shopt -s lastpipe DEST=$1 TYPE=$(basename "$DEST" .xml) NOW=$(date -Iseconds) readarray POSTS < <(yq --output-format json --indent 0 '.posts[]' allposts.meta.yaml) yq --output-format json --indent 0 '.posts[]' allposts.meta.yaml | readarray POSTS setup_vars () { title=$(echo "$1" | yq .title)