mirror of
https://github.com/SpotX-Official/SpotX-Bash.git
synced 2026-06-21 22:50:55 +10:00
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.
This commit is contained in:
@@ -263,6 +263,7 @@ linux_no_client() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
echo -e "${red}Error:${clr} Spotify installation not found.\nInstall Spotify or set Spotify directory path with '-P' flag.\n" >&2
|
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
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user