From bbd7f6f95e7d9fe48f0150b33781ce09d1d7d11c Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Tue, 18 Jul 2023 13:51:54 +0000 Subject: [PATCH] 2.1 - improve logging output --- lidarr/Audio.service.bash | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/lidarr/Audio.service.bash b/lidarr/Audio.service.bash index a4168c6..7084ec4 100644 --- a/lidarr/Audio.service.bash +++ b/lidarr/Audio.service.bash @@ -1,5 +1,5 @@ #!/usr/bin/with-contenv bash -scriptVersion="2.1" +scriptVersion="2.2" scriptName="Audio" log () { @@ -103,11 +103,7 @@ Configuration () { if [ ! -d /config/xdg ]; then mkdir -p /config/xdg fi - processdownloadid="$(ps -A -o pid,cmd|grep "Audio.sh" | grep -v grep | head -n 1 | awk '{print $1}')" - log "To kill script, use the following command:" - log "kill -9 $processdownloadid" - sleep 2 - + if [ -z $topLimit ]; then topLimit=10 fi @@ -150,8 +146,9 @@ Configuration () { else audioBitrateText="${audioBitrate}k" fi - fi - + else + audioBitrateText="$audioBitrate" + fi log "Output bitrate: $audioBitrateText" if [ "$requireQuality" == "true" ]; then