💾 Archived View for gemini.cyberbot.space › gemlog › aux › hotsync.sh captured on 2023-06-14 at 14:25:14.
-=-=-=-=-=-=-
#!/bin/bash tmp_d=$(mktemp -d) trap 'rm -rf -- "$tmp_d"' EXIT TODAY=$(date +%Y-%m-%d) WXURL="" mkdir -p $tmp_d/rss mkdir -p $tmp_d/geminispace export gemdir=$tmp_d gemget -s gemini://gemini.cyberbot.space/feed.gmi -d $tmp_d/ gemget -s gemini://gemini.cyberbot.space/rss/feed.gmi -d $tmp_d/rss/ gemget -s gemini://geminispace.org/?feed -e -d $tmp_d/ gemget -s "$WXURL" -o $tmp_d/$TODAY-weather.gmi awk '/=> gemini/ {print $2}' $tmp_d/feed.gmi | xargs -d