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

error: $./rust.sh in zsh #1

Closed
chinanf-boy opened this issue Apr 18, 2021 · 1 comment
Closed

error: $./rust.sh in zsh #1

chinanf-boy opened this issue Apr 18, 2021 · 1 comment

Comments

@chinanf-boy
Copy link

chinanf-boy commented Apr 18, 2021

$ ./rust.sh linux          
./rust.sh: 2: Syntax error: "(" unexpected

Fix

Add default sh #!/bin/bash to rust.sh

#!/bin/bash
#### Default Current Machine
function current() {
    cargo build --release

    ## check now os.
}
...
sunhuachuang added a commit that referenced this issue Apr 18, 2021
@sunhuachuang
Copy link
Member

OK, thanks, added the Shebang.

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