puneetsl / lotion

Unofficial Notion.so app for Linux
MIT License
2.01k stars 87 forks source link

install.sh command throws error #74

Closed franva closed 4 years ago

franva commented 4 years ago

Trying install it on my Ubuntu.

When running

./install.sh
bash: ./install.sh: /bin/bash^M: bad interpreter: No such file or directory

it throws the error.

I then cd into that folder and found the bash folder is there.

image

how to fix it?

franva commented 4 years ago

After searching for a while, it turns out the issue is caused by the writing the script in Windows env and trying to run it in Linux env.

A super easy way to make it work is to use dos2unix (it can be easily installed by sudo apt install dos2unix)

cd into the folder where you have the code, then

dos2unit *.sh

then run the ./install.sh