Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
jetfir3 authored May 24, 2024
1 parent 82a390e commit fc1de0b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions spotx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fc1de0b

Please sign in to comment.