I’m trying to automate a process, however I get an error “COMMAND FAILED” with no additional information on what is wrong with the command. OBS. None of the commands I try works, getting the same error.
Even though it works just fine directly on the terminal, both ZSH and BASH.
There is an error in the .env file in your terminal output, Not sure if that is going to cause any issues but it could be an unexpected output.
What happens if you try the cd then instead of ; use && and maybe try a quick ls as well. Using ; will typically try the second command even if the first fails so it could be that for some reason the directory change isn’t happening.
It looks like it was not an error, just an alert. I was able to solve the issue removing the “#” from the code command, it seems it was not being recognized in the script.