Skip to content

Commit

Permalink
Add additional error output
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
jetfir3 committed Jun 4, 2024
1 parent c2d4195 commit 450b186
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions spotx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 450b186

Please sign in to comment.