From e00fb832d172012600b452c9d4888b0de6fa89a3 Mon Sep 17 00:00:00 2001 From: jetfir3 <95306468+jetfir3@users.noreply.github.com> Date: Tue, 4 Jun 2024 23:07:50 -0400 Subject: [PATCH] Update - fix https://github.com/SpotX-Official/SpotX-Bash/issues/47 --- spotx.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/spotx.sh b/spotx.sh index b0f174b..6ceb755 100644 --- a/spotx.sh +++ b/spotx.sh @@ -225,12 +225,13 @@ linux_client_variant() { [[ -z "${flatpakVer+x}" ]] && versionFailed='true' || { clientVer="${flatpakVer}"; flatpakClient='true'; } cachePath=$(timeout 10 find /var/lib/flatpak/ $HOME/.var/app -type d -path "*com.spotify.Client/cache/spotify*" -name "spotify" -print -quit 2>/dev/null) } - return + return 0 } [[ "${installPath}" == *"opt/spotify"* || "${installPath}" == *"spotify-launcher"* || "${installPath}" == *"usr/share/spotify"* ]] && { - cachePath=$(timeout 10 find $HOME/.cache/ -type d -path "*.cache/spotify*" -not -path "*snap/spotify*" -name "spotify" -print -quit 2>/dev/null); : + cachePath=$(timeout 10 find $HOME/.cache/ -type d -path "*.cache/spotify*" -not -path "*snap/spotify*" -name "spotify" -print -quit 2>/dev/null) + return 0 } - : + return 0 } linux_deb_prepare() {