Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bash script failing #68

Open
SweAdelpha opened this issue Oct 25, 2020 · 6 comments
Open

Bash script failing #68

SweAdelpha opened this issue Oct 25, 2020 · 6 comments

Comments

@SweAdelpha
Copy link

Hi,

Thank you for your work on the app!

I'm trying to get it to install over my current monitor setup(on a raspberry pi 3 model b) but I'm getting an error when running the first command:

bash -c "$(curl -sL https://raw.githubusercontent.com/Odianosen25/Monitor-App/master/installer/install_ad.sh)"

It says "bash: line 2: cd: $'\r': No such file or directory", "bash: line 3: $'clear\r': command not found", "bash: line 14: cd: $'\r': No such file or directory", "bash: line 17: $'\r': command not found" and "bash: -c: line 166: syntax error: unexpected end of file"

Am I missing something?

@stokes776
Copy link

I am getting this same error, on a Raspberry Pi 4, running HomeAssistant 0.117.0

@Odianosen25
Copy link
Owner

Hello @SweAdelpha and @stokes776,

Appologies for the late replay. On the script, I didn't build it so difficult for me to fix it.

If I may ask, are you using hass.io? As its not built for that but for a vallina Linux OS.

Regards

@SweAdelpha
Copy link
Author

Hi,
Thanks for your reply!
I'm using rasbian lite as suggested in the monitor install instructions:

https://github.com/andrewjfreyer/monitor

@korniza
Copy link

korniza commented Nov 15, 2020

you need to download first repo and run on shell
dos2unix file_name

@korniza
Copy link

korniza commented Nov 15, 2020

if is not working please open file with vim and type the following.
:set ff=unix
after save file
:wq

@mariwing
Copy link

In my (not so) humble opinon either the script should work on Raspberry (as it even says it is tested on PI3/4 on this page) or it should not be promoted or included in the description at all. Even after pulling the repo and changing the files with vim it fails so there is not only the line endings that are wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants