From c00debb330d6667826992475c67d30916219eae3 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 8 Aug 2022 10:49:00 -0500 Subject: Use $1 to determine where to output things --- runsfeed | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'runsfeed') diff --git a/runsfeed b/runsfeed index 48f118d..9c3b330 100755 --- a/runsfeed +++ b/runsfeed @@ -5,17 +5,17 @@ main() { NOFETCH=false - [ "x$1" = "x-n" ] && NOFETCH=true + [ "x$1" = "x-n" ] && { + NOFETCH=true + shift + } + [ -n "$1" ] && SFEED_OUTPUT="$1" || SFEED_OUTPUT="$HOME/.sfeed" + export SFEED_OUTPUT export NOFETCH export SFEED_CONFIG="$HOME/.sfeed" # SFEED_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/sfeed" export SFEED_DATA="$HOME/.sfeed" # SFEED_DATA="${XDG_DATA_HOME:-$HOME/.local/share}/sfeed" - if [ -d /var/www/acdw.casa/planet ]; then - export SFEED_OUTPUT=/var/www/acdw.casa/planet - else - export SFEED_OUTPUT="$HOME/.sfeed" - fi # SFEED_OUTPUT=/var/www/sfeed export sfeedrc="$SFEED_CONFIG/sfeedrc" export sfeedpath="$SFEED_DATA/feeds" -- cgit 1.4.1-21-gabe81