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

Replace script interpreter to bash or update the documentation #131

Open
Jiab77 opened this issue Dec 13, 2020 · 2 comments
Open

Replace script interpreter to bash or update the documentation #131

Jiab77 opened this issue Dec 13, 2020 · 2 comments

Comments

@Jiab77
Copy link
Contributor

Jiab77 commented Dec 13, 2020

Hello @kotakanbe, I've spotted that most of the script are using sh as interpreter but the documentation is using sudo bash install.sh as shown here.

Would it not be better to simply change the default interpreter to bash instead of sh and update the documentation accordingly?

Let me know if you agree and I can do the necessary pull requests.

@kotakanbe
Copy link
Contributor

Hi, @Jiab77

You're right. If it works, I think /bin/sh is fine.
Please make sure you do the test, send a pull request is appreciated.

@Jiab77
Copy link
Contributor Author

Jiab77 commented Jan 15, 2021

Hello @kotakanbe, Yes I'll do some tests 'cause I think this coding form: if [[ condition == expected ]]; then; else; fi or [[ condition ]] && true || false will not work with /bin/sh. I think this coding form is only supported by /bin/bash.

As far as I remember, /bin/sh will only support this form: if [ condition = expected ]; then; else; fi.

I'll do some research, do some tests and let you know. From there we will be able to take a decision.

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

2 participants