I actually have a problem when I try to execute a command in my shell script to start my docker container.
I'm running :
The command works well but before being executed and seeing the log output, it display the help command like if I only ran
The fact is that I don't want to mute the function log using >/dev/null because I need to see the log.
I tried, using eval, exec, assign a cast string of the command to a variable...
Unfortunately docker-compose is not an alias. I'm getting the problem not only with docker-compose but also others clis or global installed npm-packages like "pm2"
Any idea to solve this ?