Skip to content

Commit 0c073a8

Browse files
authored
Merge branch 'captainhookphp:main' into main
2 parents e34511c + ae800e0 commit 0c073a8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Hook/Template/Docker.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ public function getCode(string $hook): string
7777
'# read original hook stdIn to pass it in as --input option',
7878
'input=$(cat)',
7979
'',
80-
"if sh -c \": >/dev/tty\" >/dev/null 2>/dev/null; then\n\texec < /dev/tty\nfi",
80+
'if sh -c ": >/dev/tty" >/dev/null 2>/dev/null; then',
81+
' exec < /dev/tty',
82+
'fi',
8183
'',
8284
$this->getOptimizeDockerCommand($hook) . ' '
8385
. $this->resolveBinaryPath()

0 commit comments

Comments
 (0)