File tree Expand file tree Collapse file tree 4 files changed +4
-20
lines changed
magento2/usr/local/share/container
spryker/usr/local/share/spryker
symfony/usr/local/share/symfony
ubuntu/16.04/usr/local/share/bootstrap Expand file tree Collapse file tree 4 files changed +4
-20
lines changed Original file line number Diff line number Diff line change 87
87
88
88
do_magento () (
89
89
set +x
90
- if [ " $# " -gt 0 ]; then
91
- as_app_user " ./bin/magento $( printf " %q " " $@ " ) "
92
- else
93
- as_app_user " ./bin/magento"
94
- fi
90
+ as_app_user " $( escape_shell_args ./bin/magento " $@ " ) "
95
91
)
Original file line number Diff line number Diff line change @@ -159,9 +159,5 @@ do_spryker_run_tests() {
159
159
160
160
do_spryker_console () (
161
161
set +x
162
- if [ " $# " -gt 0 ]; then
163
- as_app_user " vendor/bin/console $( printf " %q " " $@ " ) "
164
- else
165
- as_app_user " vendor/bin/console"
166
- fi
162
+ as_app_user " $( escape_shell_args vendor/bin/console " $@ " ) "
167
163
)
Original file line number Diff line number Diff line change @@ -149,9 +149,5 @@ do_symfony_build() {
149
149
150
150
do_symfony_console () (
151
151
set +x
152
- if [ " $# " -gt 0 ]; then
153
- as_app_user " '$SYMFONY_CONSOLE ' $( printf " %q " " $@ " ) "
154
- else
155
- as_app_user " '$SYMFONY_CONSOLE '"
156
- fi
152
+ as_app_user " $( escape_shell_args " $SYMFONY_CONSOLE " " $@ " ) "
157
153
)
Original file line number Diff line number Diff line change @@ -281,9 +281,5 @@ function do_list_functions() {
281
281
}
282
282
283
283
function do_shell() {
284
- if [ " $# " -gt 0 ]; then
285
- bash " $@ "
286
- else
287
- bash
288
- fi
284
+ bash " $@ "
289
285
}
You can’t perform that action at this time.
0 commit comments