How to workaround “the input device is not a TTY” when using grunt-shell to invoke a script that calls docker run?
问题 When issuing grunt shell:test , I'm getting warning "the input device is not a TTY" & don't want to have to use -f : $ grunt shell:test Running "shell:test" (shell) task the input device is not a TTY Warning: Command failed: /bin/sh -c ./run.sh npm test the input device is not a TTY Use --force to continue. Aborted due to warnings. Here's the Gruntfile.js command: shell: { test: { command: './run.sh npm test' } Here's run.sh : #!/bin/sh # should use the latest available image to validate, but