From df16be1f6296e00f5d5812f5dcf13fefaffe83b8 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 18 Jul 2022 00:07:32 -0500 Subject: Path mangling --- runsfeed | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'runsfeed') diff --git a/runsfeed b/runsfeed index e6714a7..2296736 100755 --- a/runsfeed +++ b/runsfeed @@ -8,7 +8,11 @@ main() { # SFEED_CONFIG="${XDG_CONFIG_HOME:-$HOME/.config}/sfeed" export SFEED_DATA="$HOME/.sfeed" # SFEED_DATA="${XDG_DATA_HOME:-$HOME/.local/share}/sfeed" - export SFEED_OUTPUT="$HOME/.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