From fc1de0b5add3e7eacc51ded01dacf5daeda74bbc Mon Sep 17 00:00:00 2001 From: jetfir3 <95306468+jetfir3@users.noreply.github.com> Date: Fri, 24 May 2024 11:55:24 -0400 Subject: [PATCH] Update --- spotx.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/spotx.sh b/spotx.sh index 823996f..27e2d32 100644 --- a/spotx.sh +++ b/spotx.sh @@ -195,10 +195,11 @@ macos_autoupdate_check() { rm -rf "${autoupdatePath}" 2>/dev/null echo -e "${green}Notice:${clr} Deleted stock auto-update file waiting to be installed" } - altAutoupdatePath=$(find /Users/*/Library/Application\ Support/Spotify/PersistentCache/Update -type d 2>/dev/null) - local dir; for dir in $altAutoupdatePath; do + local altAutoupdatePath=$(find /Users/*/Library/Application\ Support/Spotify/PersistentCache/Update -type d 2>/dev/null) + local dir + for dir in $altAutoupdatePath; do [[ -d "${dir}" && "$(ls -A "${dir}")" ]] && { - echo -e "\n${yellow}Warning:${clr} Potential auto-update file found...\nManual deletion recommended: ${dir}\n" + echo -e "\n${yellow}Warning:${clr} Potential auto-update file found...\nManual deletion required: ${dir}\n" >&2 } done } @@ -613,7 +614,7 @@ xpui_open() { [[ -z "${clientVer}" ]] && { clientVer="${sxbVer}" unknownVer='true' - echo -e "\n${red}Warning:${clr} Client version not detected, some features may not be applied\n" + echo -e "\n${red}Warning:${clr} Client version not detected, some features may not be applied\n" >&2 } || { (( $(ver "${clientVer}") < $(ver "1.1.59.710") )) && { uninstall_spotx