From e2446892d820e0543a7e4674d60dda3f58a9cea9 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Tue, 22 Nov 2022 07:32:53 -0500 Subject: [PATCH] v1.0.058 - Bug fix for Kill command --- root/scripts/Video.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/root/scripts/Video.sh b/root/scripts/Video.sh index 7d92124..48ce03b 100644 --- a/root/scripts/Video.sh +++ b/root/scripts/Video.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.0.057" +scriptVersion="1.0.058" if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" @@ -75,10 +75,8 @@ log "1"; sleep 1 Configuration () { - processstartid="$(ps -A -o pid,cmd|grep "start_video.sh" | grep -v grep | head -n 1 | awk '{print $1}')" - processdownloadid="$(ps -A -o pid,cmd|grep "video.sh" | grep -v grep | head -n 1 | awk '{print $1}')" + processdownloadid="$(ps -A -o pid,cmd|grep "Video.sh" | grep -v grep | head -n 1 | awk '{print $1}')" log "To kill script, use the following command:" - log "kill -9 $processstartid" log "kill -9 $processdownloadid" sleep 2