From 450b186434a3e6c5b6d18d0c71a9ce23152b56d6 Mon Sep 17 00:00:00 2001 From: jetfir3 <95306468+jetfir3@users.noreply.github.com> Date: Tue, 4 Jun 2024 16:46:40 -0400 Subject: [PATCH] Add additional error output - When no Spotify client is detected on "non-APT" Linux distros, script will check for spicetify command and, if found, mention that spicetify must not be applied prior to using this script. Devices running an APT-supported distro or macOS will be prompted to (re)install the client which resolves the issue so no additional error or warning output should be needed. --- spotx.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/spotx.sh b/spotx.sh index 207d6ef..b0f174b 100644 --- a/spotx.sh +++ b/spotx.sh @@ -263,6 +263,7 @@ linux_no_client() { return } echo -e "${red}Error:${clr} Spotify installation not found.\nInstall Spotify or set Spotify directory path with '-P' flag.\n" >&2 + command -v spicetify >/dev/null && echo -e "If Spotify is installed but Spicetify has been applied,\nrun ${yellow}'spicetify restore'${clr} then try again.\n" >&2 exit 1 }