From 035914fb2d932e088cd88bf25b8b53fc81e806f5 Mon Sep 17 00:00:00 2001 From: deathbybandaid Date: Thu, 22 Feb 2024 08:21:00 -0500 Subject: [PATCH] test --- plex-emptytrash.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plex-emptytrash.sh b/plex-emptytrash.sh index d33316c..ab2abab 100644 --- a/plex-emptytrash.sh +++ b/plex-emptytrash.sh @@ -18,15 +18,15 @@ update_from_api() { #source ./plex-token.sh source ./plex-library-ids.sh - echo $LOCAL_LIBRARIES_IDS - echo $LOCAL_LIBRARIES_TITLES + array=$LOCAL_LIBRARIES_IDS + array2=$LOCAL_LIBRARIES_TITLES # run a loop against each library echo "Emptying Trash for all libraries" i=0 - while [ $i -lt ${#LOCAL_LIBRARIES_[*]} ]; do - echo ${LOCAL_LIBRARIES_IDS[$i]} is in ${LOCAL_LIBRARIES_TITLES[$i]} - i=$(( $i + 1)); + while [ $i -lt ${#array[*]} ]; do + echo ${array[$i]} is in ${array2[$i]} + i=$(( $i + 1)); done for index in ${!LOCAL_LIBRARIES_[*]}