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 @@ -91,9 +91,11 @@ startDockerComposeServices ()
91
91
92
92
configureWithArguments ()
93
93
{
94
+ configureDockerComposeExecFlags
95
+
94
96
# Commands
95
97
#
96
- DOCKER_COMPOSE_EXEC=" ${DOCKER_COMPOSE} exec -u ` id -u ` : ` id -g ` "
98
+ DOCKER_COMPOSE_EXEC=" ${DOCKER_COMPOSE} exec ${dockerComposeExecFlags} "
97
99
COMPOSER_UPDATE=' composer update --prefer-dist --no-suggest --optimize-autoloader'
98
100
99
101
# Default Options
@@ -112,6 +114,30 @@ configureWithArguments ()
112
114
else : ; fi
113
115
}
114
116
117
+ configureDockerComposeExecFlags ()
118
+ {
119
+ dockerComposeExecFlags=" -u ` id -u` :` id -g` "
120
+
121
+ if hasTty; then
122
+ :
123
+ else
124
+ dockerComposeExecFlags=" ${dockerComposeExecFlags} -T"
125
+ fi
126
+ }
127
+
128
+ hasTty ()
129
+ {
130
+ test -t 0 || {
131
+ return 1
132
+ }
133
+
134
+ test -t 1 || {
135
+ return 1
136
+ }
137
+
138
+ return 0
139
+ }
140
+
115
141
populatePHPVersions ()
116
142
{
117
143
if test x' all' = x" ${PHP_VERSIONS} " ; then
You can’t perform that action at this time.
0 commit comments