From a59cc14dfaad86f68a5f8d3be3f063178772a529 Mon Sep 17 00:00:00 2001 From: RandomNinjaAtk Date: Thu, 4 May 2023 14:18:09 -0400 Subject: [PATCH] 1.0.311 - Bug fix for error suppression #232 --- root/scripts/Audio.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/root/scripts/Audio.sh b/root/scripts/Audio.sh index 51a1f97..b70e044 100644 --- a/root/scripts/Audio.sh +++ b/root/scripts/Audio.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -scriptVersion="1.0.310" +scriptVersion="1.0.311" if [ -z "$lidarrUrl" ] || [ -z "$lidarrApiKey" ]; then lidarrUrlBase="$(cat /config/config.xml | xq | jq -r .Config.UrlBase)" if [ "$lidarrUrlBase" == "null" ]; then @@ -988,7 +988,7 @@ GetMissingCutOffList () { fi done - lidarrMissingRecords=$(ls /config/extended/cache/lidarr/list | wc -l 2>/dev/null) + lidarrMissingRecords=$(ls /config/extended/cache/lidarr/list 2>/dev/null | wc -l) log "$page :: missing :: ${lidarrMissingRecords} albums found to process!" wantedListAlbumTotal=$lidarrMissingRecords @@ -1027,7 +1027,7 @@ GetMissingCutOffList () { fi done - lidarrCutoffRecords=$(ls /config/extended/cache/lidarr/list/*-cutoff | wc -l 2>/dev/null) + lidarrCutoffRecords=$(ls /config/extended/cache/lidarr/list/*-cutoff 2>/dev/null | wc -l) log "$page :: cutoff :: ${lidarrCutoffRecords} ablums found to process!" wantedListAlbumTotal=$lidarrCutoffRecords