From ce33958387f8d6d7708cbe9061253ed446b1cb6b Mon Sep 17 00:00:00 2001 From: Niklas Date: Mon, 30 Nov 2020 01:36:38 +0100 Subject: [PATCH] added wget hsts file option to reddit wp --- .local/share/scripts/reddit-wp.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/share/scripts/reddit-wp.sh b/.local/share/scripts/reddit-wp.sh index ea98ba0..0d1c798 100755 --- a/.local/share/scripts/reddit-wp.sh +++ b/.local/share/scripts/reddit-wp.sh @@ -8,5 +8,5 @@ set -e # There are 2 subreddits "wallpapers" and "wallpaper" the 2nd one is bigger. SUB="${1:-wallpaper}" -wget -O - "http://www.reddit.com/r/$SUB/top/.json?t=day" 2> /dev/null | jq -r ".data.children[0].data.url" +wget --hsts-file="$XDG_CACHE_HOME/wget-hsts" -O - "http://www.reddit.com/r/$SUB/top/.json?t=day" 2> /dev/null | jq -r ".data.children[0].data.url"