Skip to content

Commit a64ce23

Browse files
committed
Use [ -t 0 ] for terminal toggle
1 parent cbf662c commit a64ce23

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

kubectl-node_shell

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
set -e
33

44
kubectl=kubectl
5-
version=1.5.1
5+
version=1.5.2
66
generator=""
77
node=""
88
nodefaultctx=0
99
nodefaultns=0
1010
cmd='[ "nsenter", "--target", "1", "--mount", "--uts", "--ipc", "--net", "--pid", "--"'
11-
if ! [ -p /dev/stdin ] && ! [ -p /dev/stdout ]; then
11+
if [ -t 0 ]; then
1212
tty=true
1313
else
1414
tty=false

0 commit comments

Comments
 (0)