openzeppelin-labs icon indicating copy to clipboard operation
openzeppelin-labs copied to clipboard

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

Open mesqueeb opened this issue 7 years ago • 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!!

mesqueeb avatar Jul 26 '18 03:07 mesqueeb

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

mesqueeb avatar Jul 26 '18 03:07 mesqueeb

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 avatar Aug 06 '18 20:08 spalladino

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

TinKurbatoff avatar Dec 12 '20 23:12 TinKurbatoff