-
Notifications
You must be signed in to change notification settings - Fork 37
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
Syntax error: "(" unexpected (expecting "fi") #15
Comments
Same error for me under Dash (which is what /bin/sh is sym-linked to on my system). Runs ok under Bash though. |
I tried it (and got above mentioned error) in |
Oh, I see: I also have |
Yeah, the workaround is to change the interpreter to Bash. Although it was changed the other way in 61d059d so it is probably in the author's intentions to make it run under any POSIX shell. Either way, I don't think this issue should be closed right now. |
Yes @eush77 I'd like it to run under any Posix shell. We'll keep the issue open. If anyone has any insights on how to run it on dash please let me know. |
I ran shellcheck on this script with the first line changed to
And it somehow missed this:
Overall, it seems highly non-trivial to make |
I downloaded the script, run it on my Ubuntu 16.04 laptop and get
The text was updated successfully, but these errors were encountered: