mirror of
https://github.com/SpotX-Official/SpotX-Bash.git
synced 2026-04-23 19:40:18 +10:00
Add output for Snap clients
This commit is contained in:
1
spotx.sh
1
spotx.sh
@@ -188,6 +188,7 @@ linux_set_path () {
|
|||||||
[[ -d "${installPath}" ]] && echo -e "Found Spotify Directory: ${installPath}\n" ||
|
[[ -d "${installPath}" ]] && echo -e "Found Spotify Directory: ${installPath}\n" ||
|
||||||
{ echo -e "${red}Error:${clear} Spotify directory not found.\nSet directory path with '-P' flag.\n" >&2; exit 1; }
|
{ echo -e "${red}Error:${clear} Spotify directory not found.\nSet directory path with '-P' flag.\n" >&2; exit 1; }
|
||||||
else
|
else
|
||||||
|
[[ "${installPath}" == *"/snap/"* ]] && { echo -e "${red}Error:${clear} Snap client is not supported by SpotX-Bash.\nReview the FAQ for more info.\n" >&2; exit 1; }
|
||||||
[[ -f "${installPath}/Apps/xpui.spa" ]] && echo -e "Using Spotify Directory: ${installPath}\n" ||
|
[[ -f "${installPath}/Apps/xpui.spa" ]] && echo -e "Using Spotify Directory: ${installPath}\n" ||
|
||||||
{ echo -e "${red}Error:${clear} Spotify not found in path set by '-P'.\nConfirm directory and try again.\n" >&2; exit 1; }
|
{ echo -e "${red}Error:${clear} Spotify not found in path set by '-P'.\nConfirm directory and try again.\n" >&2; exit 1; }
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user