mirror of
https://github.com/SpotX-Official/SpotX-Bash.git
synced 2026-04-11 17:37:20 +10:00
Update
- search alternate $user client update paths and print warning if found If multiple users are sharing the same Spotify client, local users who haven't run SpotX-Bash could have auto-update data which would update the client to stock.. removing SpotX-Bash patches.
This commit is contained in:
10
spotx.sh
10
spotx.sh
@@ -192,9 +192,15 @@ macos_set_path() {
|
||||
macos_autoupdate_check() {
|
||||
autoupdatePath="${HOME}/Library/Application Support/Spotify/PersistentCache/Update"
|
||||
[[ -d "${autoupdatePath}" && "$(ls -A "${autoupdatePath}")" ]] && {
|
||||
rm -rf "${autoupdatePath}"/* 2>/dev/null
|
||||
[[ "${debug}" ]] && echo -e "${green}Debug:${clr} Removed stock update waiting to be installed"
|
||||
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
|
||||
[[ -d "${dir}" && "$(ls -A "${dir}")" ]] && {
|
||||
echo -e "\n${yellow}Warning:${clr} Potential auto-update file found...\nManual deletion recommended: ${dir}\n"
|
||||
}
|
||||
done
|
||||
}
|
||||
|
||||
macos_prepare() {
|
||||
|
||||
Reference in New Issue
Block a user