capsule/generate-https-feed.sh

9 lines
221 B
Bash
Raw Normal View History

#!/usr/bin/env bash
set -eu
INFEED="public/gemlog/atom.xml"
OUTFEED="public/gemlog/atom-https.xml"
# read INFILE, replace gemini:// with https:// and write to OUTFILE
sed 's/gemini:\/\//https:\/\//g' $INFEED > $OUTFEED