#!/bin/sh -e cmds="$(dirname "$(realpath "$0")")" cd "$1" [ -s parse.hash ] && hash_our=`cat parse.hash` || : [ -s download.hash ] && hash_their=`cat download.hash` || : [ "$hash_our" != "$hash_their" ] || exit 0 zstd -d < feed.zst | $cmds/feed2mdir/feed2mdir . > title.tmp mv title.tmp title echo $hash_their > parse.hash