We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e1d005 commit 11314e7Copy full SHA for 11314e7
.pscale/cli-helper-scripts/use-pscale-docker-image.sh
@@ -6,8 +6,11 @@ function pscale {
6
local non_interactive=""
7
local command=""
8
9
- # if first arg equals shell, we have to turn off pseudo-tty and set PSCALE_ALLOW_NONINTERACTIVE_SHELL=true
10
- if [ "$1" = "shell" ]; then
+ # if first arg equals shell, and we are getting input piped in we have to turn off pseudo-tty and set PSCALE_ALLOW_NONINTERACTIVE_SHELL=true
+ if [ "$1" = "shell" ] && ! [[ -t 0 ]]; then
11
+ tty=""
12
+ non_interactive="-e PSCALE_ALLOW_NONINTERACTIVE_SHELL=true"
13
+ fi
14
tty=""
15
non_interactive="-e PSCALE_ALLOW_NONINTERACTIVE_SHELL=true"
16
fi
0 commit comments