From de8bb0a693c78fc69f62ea8e8066b1596a44bc6d Mon Sep 17 00:00:00 2001 From: tarkah Date: Fri, 28 Feb 2020 16:55:28 -0800 Subject: [PATCH] cronjob was failing if files didn't already exist (#5) --- cronjob.sh | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/cronjob.sh b/cronjob.sh index 80e81b7..37483da 100644 --- a/cronjob.sh +++ b/cronjob.sh @@ -52,9 +52,7 @@ if [ "$use_lazystream" = "yes" ]; then if [ "$include_nhl" = "yes" ]; then echo "Running Lazystream (NHL)..." - rm ./playlists/lazystream/lazystream-nhl.m3u - rm ./playlists/lazystream/lazystream-nhl.xml - mkdir -p ./playlists/lazystream + mkdir -p /playlists/lazystream lazystream generate xmltv \ --channel-prefix Lazystream:\ NHL \ --start-channel 1000 \ @@ -62,9 +60,7 @@ if [ "$use_lazystream" = "yes" ]; then fi if [ "$include_mlb" = "yes" ]; then echo "Running Lazystream (MLB)..." - rm ./playlists/lazystream/lazystream-mlb.m3u - rm ./playlists/lazystream/lazystream-mlb.xml - mkdir -p ./playlists/lazystream + mkdir -p /playlists/lazystream lazystream --sport mlb generate xmltv \ --channel-prefix Lazystream:\ MLB \ --start-channel 2000 \