From 7e5cf7e3cbb3be810fe43b19eb4b065579d17152 Mon Sep 17 00:00:00 2001 From: lulzette Date: Tue, 27 Apr 2021 20:25:34 +0300 Subject: [PATCH] fix check --- check.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/check.sh b/check.sh index d5d1daf..b81a624 100755 --- a/check.sh +++ b/check.sh @@ -15,10 +15,10 @@ source $full_path/config_list.sh #if pid exists and stream is live, than exit and do not start recording [ -f $storage_path/$1/pid ] && $full_path/lifeChk.py $1 $twitchid && exit 0 -echo $$ > $storage_path/$1/pid - #exit if no stream and remove lock -$full_path/lifeChk.py $1 $twitchid || rm $storage_path/$1/pid || exit 0 +$full_path/lifeChk.py $1 $twitchid || rm $storage_path/$1/pid ; exit 0 + +echo $$ > $storage_path/$1/pid #set pid and start recording /home/losted/.local/bin/youtube-dl -v -o $storage_path/$1/"%(upload_date)s_%(title)s__%(timestamp)s_%(id)s.%(ext)s" twitch.tv/$1 >> $storage_path/$1/youtube-dl.log 2>&1