added wget hsts file option to reddit wp

This commit is contained in:
Niklas 2020-11-30 01:36:38 +01:00
parent 868edd88d1
commit ce33958387

View File

@ -8,5 +8,5 @@ set -e
# There are 2 subreddits "wallpapers" and "wallpaper" the 2nd one is bigger. # There are 2 subreddits "wallpapers" and "wallpaper" the 2nd one is bigger.
SUB="${1:-wallpaper}" 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"