When I try to build my project on the Mac I get the error: zsh: code not found: build.sh
I use IntelliJ and Docker.
Anyone have any idea how to fix this?
Tried some different things already:
CodePudding user response:
Add permission to execute which you did already with chmod x *.sh
(try to avoid that since it gives permission to execute to all scripts, including ones that you don't want to be executable; Instead write specific file name - in your case chmod x build.sh
)
You can execute scripts with ./scriptname.sh
for example ./build.sh
- you did it before but without execute rights which now your script has.
CodePudding user response:
Your shell doesn't know what is build.sh
.
Execute this ./build.sh
If a file is not executable, you need to make it with this command sudo chmod x build.sh