From 3d4ab8553f7f2867b1ee5526a6785a2877ec5648 Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Sun, 18 Oct 2020 16:22:57 +0200 Subject: README: improve etag example with escaping of the filename Use the same base filename as the feed file, because sfeed_update replaces '/' in names with '_': filename="$(printf '%s' "$1" | tr '/' '_')" This fixes the example for fetching feeds with names containing '/'. Reported by __20h__, thanks! --- README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'README') diff --git a/README b/README index 3cc7ca2..fa8e740 100644 --- a/README +++ b/README @@ -588,7 +588,7 @@ the --etag-save and --etag-compare options: # fetch(name, url, feedfile) fetch() { - etag="$HOME/.sfeed/etags/$1" + etag="$HOME/.sfeed/etags/$(basename "$3")" curl --etag-save "${etag}" --etag-compare "${etag}" "$2" } -- cgit v1.2.3