The file './ganache.sh' is marked as an executable but could not be run by the operating system.
mesqueeb opened this issue · 3 comments
mesqueeb commented
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 commented
It does work when:
- I change the name to
ganache.bash
instead ofganache.sh
- I add this to the top of the file:
#!/bin/bash
spalladino commented
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!
TinKurbatoff commented
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