spicetify-fluent icon indicating copy to clipboard operation
spicetify-fluent copied to clipboard

"invalid option -" on installation script

Open Dowsley opened this issue 2 years ago • 1 comments

🔍 Is there already an issue for your problem?

  • [x] I have checked older issues, open and closed

ℹ Environment / Computer Info

- Spotify version: Spotify for macOS (Apple Silicon) 1.2.0.1165.gabf054ab
- Spicetify version: 2.16.0
- Fluent installation method: GitHub Readme

📝 Description

Run curl -fsSL https://raw.githubusercontent.com/williamckha/spicetify-fluent/master/install.sh | sh on either bash or zsh

Expected: Success in installation.

Output:

: command not found
: 
set: usage: set [--abefhkmnptuvxBCHP] [-o option] [arg ...]

📸 Screenshots

No response

Dowsley avatar Jan 05 '23 18:01 Dowsley

I had the same error. The thing is that install.sh has \r\n at the end of every line (Windows stuff) instead of \n. Try running:

curl -fsSL https://raw.githubusercontent.com/williamckha/spicetify-fluent/master/install.sh | tr -d "\r"| sh

to remove every \r

matteac avatar Jun 07 '24 03:06 matteac