Commit e15f621
committed
Fix "the input device is not a TTY" with non-interactive commands
Fixes running non-interactive commands via plain ssh (as opposed to
"ssh -t"):
$ ssh server /path/to/isolate-gpu -d 0 echo hello
the input device is not a TTY
... by avoiding to pass "-it" to "docker run" if we don't have a
terminal. We now get the expected:
$ ssh server /path/to/isolate-gpu -d 0 echo hello
hello1 parent 6b0313d commit e15f621
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
194 | 204 | | |
195 | 205 | | |
196 | 206 | | |
| |||
0 commit comments