Orignal code, meant for Ubuntu:
./rebar get-deps
./rebar compile
When I try:
sh start.sh
start.sh: line 5: ./rebar: No such file or directory
The fix is simple, just remove ./
But how to make the script running both on Ubuntu and Mac without forcing user to make any changes?
EDIT / UPDATE: rebar
is Erlang tool installed via brew install rebar
Here is the original start.sh
file: https://github.com/aeternity/testnet/blob/master/start.sh
I think it's difference between Mac and Ubuntu - the script supposedly works on Ubuntu (didn't have a chance to try) - while on Mac I had to remove ./
(I need to check on Ubuntu myself)
rebar
a script that is in the same directory asstart.sh
? Or isrebar
a program available in your$PATH
? Is the "original code" part of thatstart.sh
script? What are the permissions of the respective files? (Can you post a minimal version of thestart.sh
script?) What you describe doesn't seem to be a problem caused by a difference between macOS and Linux.