File tree 1 file changed +27
-1
lines changed
1 file changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -103,9 +103,11 @@ startDockerComposeServices ()
103
103
104
104
configureWithArguments ()
105
105
{
106
+ configureDockerComposeExecFlags
107
+
106
108
# Commands
107
109
#
108
- DOCKER_COMPOSE_EXEC=" ${DOCKER_COMPOSE} exec -u ` id -u ` : ` id -g ` "
110
+ DOCKER_COMPOSE_EXEC=" ${DOCKER_COMPOSE} exec ${dockerComposeExecFlags} "
109
111
INSTALL_GIT_SUB_MODULE=' git submodule update --checkout --recursive --force'
110
112
COMPOSER_UPDATE=' composer update --prefer-dist --no-suggest --optimize-autoloader'
111
113
@@ -125,6 +127,30 @@ configureWithArguments ()
125
127
else : ; fi
126
128
}
127
129
130
+ configureDockerComposeExecFlags ()
131
+ {
132
+ dockerComposeExecFlags=" -u ` id -u` :` id -g` "
133
+
134
+ if hasTty; then
135
+ :
136
+ else
137
+ dockerComposeExecFlags=" ${dockerComposeExecFlags} -T"
138
+ fi
139
+ }
140
+
141
+ hasTty ()
142
+ {
143
+ test -t 0 || {
144
+ return 1
145
+ }
146
+
147
+ test -t 1 || {
148
+ return 1
149
+ }
150
+
151
+ return 0
152
+ }
153
+
128
154
populatePHPVersions ()
129
155
{
130
156
if test x' all' = x" ${PHP_VERSIONS} " ; then
You can’t perform that action at this time.
0 commit comments