Closed arthurdenner closed 6 years ago
When using functions on .sh files, the function prefix isn't necessary. Actually, if you try to run the script with ./build.sh, it throws an error: ./build.sh: 1: ./build.sh: Syntax error: "(" unexpected.
.sh
function
./build.sh
./build.sh: 1: ./build.sh: Syntax error: "(" unexpected
Do you mean if you run:
$ ./build.sh
it will throw an error?
Yes. It throws this syntax error. I forgot to mention that I'm using Ubuntu, if that's relevant.
Thanks for your PR.
When using functions on
.sh
files, thefunction
prefix isn't necessary. Actually, if you try to run the script with./build.sh
, it throws an error:./build.sh: 1: ./build.sh: Syntax error: "(" unexpected
.