grunt-shell

How to workaround “the input device is not a TTY” when using grunt-shell to invoke a script that calls docker run?

穿精又带淫゛_ 提交于 2019-11-29 10:50:38
问题 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

How to workaround “the input device is not a TTY” when using grunt-shell to invoke a script that calls docker run?

烂漫一生 提交于 2019-11-29 01:05:42
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 not LATEST if [ -f .env ]; then RUN_ENV_FILE='--env-file .env' fi docker run $RUN_ENV_FILE -it --rm -