OpenZeppelin/openzeppelin-labs

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

mesqueeb opened this issue · 3 comments

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!!

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

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!

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