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