From 9846f1f6719763c104180c2574b11c040d3a4e1d Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 18 Jul 2022 11:24:19 -0500 Subject: Add NOFETCH option --- runsfeed | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'runsfeed') diff --git a/runsfeed b/runsfeed index da43529..0e076d1 100755 --- a/runsfeed +++ b/runsfeed @@ -4,6 +4,9 @@ # set -euo pipefail main() { + NOFETCH=false + [ "x$1" = "x-n" ] && NOFETCH=true + export NOFETCH export SFEED_CONFIG="$HOME/.sfeed" # SFEED_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/sfeed" export SFEED_DATA="$HOME/.sfeed" @@ -46,6 +49,7 @@ update_urls() { } get_invidious_url() { + "${NOFETCH:-false}" && return curl -sL "$1" | jq -r .[][1].uri | grep -v onion | -- cgit 1.4.1-21-gabe81