PROXY="--proxy http://localhost:8080/"
cd "$1"
read url < url
-[ -s etag ] && etag_compare="--etag-compare etag" || etag_compare=""
-[ -r out ] && time_cond="--time-cond out" || time_cond=""
+[ -s etag ] && etag_compare="--etag-compare etag" || :
+[ -r out ] && time_cond="--time-cond out" || :
[ -z "$FEEDER_CURL_VERBOSE" ] && silent="--silent" || silent="--verbose"
curl --fail \
--user-agent "go.stargrave.org-feeder/0.1.0" \
continue
}
read title < $f/title
- [ -n "$title" ] && label="-label \"$title\"" || label=""
+ [ -n "$title" ] && label="-label \"$title\"" || :
echo mailboxes $label $f
done
cmds="$(dirname "$(realpath "$0")")"
cd "$1"
-[ -s parse.hash ] && hash_our=`cat parse.hash` || hash_our=""
-[ -s download.hash ] && hash_their=`cat download.hash` || hash_their=""
+[ -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