williamckha / spicetify-fluent

Spicetify theme inspired by Microsoft's Fluent Design
MIT License
275 stars 17 forks source link

"invalid option -" on installation script #78

Open Dowsley opened 1 year ago

Dowsley commented 1 year ago

🔍 Is there already an issue for your problem?

ℹ 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

matteac commented 1 month ago

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