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

[0.2.0] Syntax errors when creating repo #10

Closed
geoffreyvanwyk opened this issue Jun 17, 2015 · 2 comments
Closed

[0.2.0] Syntax errors when creating repo #10

geoffreyvanwyk opened this issue Jun 17, 2015 · 2 comments
Labels

Comments

@geoffreyvanwyk
Copy link

On Kubuntu 14.04, when I try to create a repo, I get these errors:

$ octokit.sh create_repo testing_octokit
/home/user/bin/octokit.sh: 397: local: |: bad variable name
/home/user/bin/octokit.sh: 577: /home/user/bin/octokit.sh: [[: not found

I guess it is because the shebang is #!/usr/bin/env sh and sh does not support local or [[.

When I run it with bash, I get another error:

$ bash octokit.sh create_repo testing_octokit
Client Error: 422 Unprocessable Entity
@whiteinge
Copy link
Owner

Yikes. How did that sneak in there? Thanks for filing the issue! I pushed a quick hotfix: https://github.com/whiteinge/ok.sh/releases/tag/0.2.1

The local statements are ok. Although it's not specified by POSIX all current bourne implementations respect it.

I'll file an issue to get integration tests added for this.

@whiteinge
Copy link
Owner

Closing. Please reopen if you encounter additional trouble.

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

No branches or pull requests

2 participants