~xdavidwu/xdavidwu.link

b68821fb5b044a18d155f68ed262062e3b0f5e12 — xdavidwu 2 years ago 571567e
build: gemini: disable echoing on line processing
1 files changed, 2 insertions(+), 0 deletions(-)

M .builds/gemini.yml
M .builds/gemini.yml => .builds/gemini.yml +2 -0
@@ 13,6 13,7 @@ tasks:
        OIFS="$IFS"
        IFS=$'\n'
        mv "$i" "${i}.orig"
        set +x
        while read LINE; do
          F=$(echo "$LINE" | sed 's/^{% include_relative \(.*\) %}$/\1/')
          if [ -f "$F" ]; then


@@ 21,6 22,7 @@ tasks:
            printf "%s\n" "$LINE" >> "$i"
          fi
        done < "${i}.orig"
        set -x
        IFS=$OIFS
        echo "=> $(echo $i | sed s/\.md$/.gmi/) $(echo $i | cut -f 1-3 -d '-'): $(grep '^title:' $i | cut -f 2 -d \")" >> ../gemini/index.gmi
      done