From 1797fc3b33bfafb73dbee7091144fe96826778d9 Mon Sep 17 00:00:00 2001 From: jetfir3 <95306468+jetfir3@users.noreply.github.com> Date: Wed, 6 Mar 2024 11:52:43 -0500 Subject: [PATCH] Add output for Snap clients --- spotx.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/spotx.sh b/spotx.sh index b37c81a..c29e9e1 100644 --- a/spotx.sh +++ b/spotx.sh @@ -188,6 +188,7 @@ linux_set_path () { [[ -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; } 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" || { echo -e "${red}Error:${clear} Spotify not found in path set by '-P'.\nConfirm directory and try again.\n" >&2; exit 1; } fi