OpenZeppelin / openzeppelin-labs

A space for the community to interact and exchange ideas on the OpenZeppelin platform. Do not use in production!
https://openzeppelin.com/
MIT License
376 stars 116 forks source link

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

Open mesqueeb opened 6 years ago

mesqueeb commented 6 years ago

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 6 years ago

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
spalladino commented 6 years ago

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 3 years ago

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