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

The file './ganache.sh' is marked as an executable but could not be run by the operating system. #128

Open
mesqueeb opened this issue Jul 26, 2018 · 3 comments
Labels
kind:bug Bug! kind:minor Minor feature or change
Milestone

Comments

@mesqueeb
Copy link

This is the error I receive when trying ./ganache.sh in governance-with-multisig.

The file './ganache.sh' is marked as an executable but could not be run by the operating system.

The file has these contents:

mkdir -p ganache
ganache-cli --gasLimit 6000000 --defaultBalanceEther 1000 --networkId 8888 --db ganache --port 9545 --deterministic

If anyone has any advice, I'd be very grateful!!

@mesqueeb
Copy link
Author

It does work when:

  1. I change the name to ganache.bash instead of ganache.sh
  2. I add this to the top of the file: #!/bin/bash

@facuspagnuolo facuspagnuolo added this to the v2.0.0 milestone Jul 26, 2018
@spalladino
Copy link
Contributor

Thanks @mesqueeb! My gut feeling is that it should work just with the shebang (ie item 2), and it should not be necessary to change the extension. Would you be willing to submit a PR with that change? Thanks!

@spalladino spalladino added kind:bug Bug! kind:minor Minor feature or change labels Aug 6, 2018
@spalladino spalladino self-assigned this Aug 6, 2018
@spalladino spalladino removed their assignment Sep 18, 2018
@facuspagnuolo facuspagnuolo modified the milestones: v2.0.0, Backlog Dec 10, 2018
@TinKurbatoff
Copy link

Since your script is .sh add a line in the beginning:
#!/bin/sh
fish is picky and allow you to use sh / bash / fish as interpretations:
#!/usr/bin/env fish

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:bug Bug! kind:minor Minor feature or change
Projects
None yet
Development

No branches or pull requests

4 participants