Search code examples
intellij-idearun-configuration

Intellij Idea - ignoring non-zero exit code of external tool


I'm using external tool to run fuser -k 1099 command before actually launching my run configuration before launch But if external tool returns non-zero status, build configuration stops. That is perfectly correct, but I can not find any way to ignore failure. If it was a plain bash, I'd do something like fuser -k 1099 || true. But at Idea, that seems to be not possible

external tool configuration

Any ideas?


Solution

  • You can use /bin/bash as the program and the following as the arguments:

    -c 'fuser -k 1099'; true
    

    This way the exit code of the tool will be always zero.