We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d9ee217 + 2c80463 commit 770b7c2Copy full SHA for 770b7c2
sapi/quickstart/linux/run-swoole-cli-builder-container.sh
@@ -16,11 +16,15 @@ OPTIONS=''
16
while [ $# -gt 0 ]; do
17
case "$1" in
18
--mirror)
19
+ MIRROR="$2"
20
case "$MIRROR" in
21
china)
- MIRROR="$2"
22
OPTIONS=" --mirror china "
23
;;
24
+ *)
25
+ echo "$0 parameter error"
26
+ exit 0
27
+ ;;
28
esac
29
30
@@ -32,6 +36,8 @@ bash setup-php-runtime.sh ${OPTIONS}
32
36
export PATH=${__PROJECT__}/bin/runtime:$PATH
33
37
alias php="php -d curl.cainfo=${__PROJECT__}/bin/runtime/cacert.pem -d openssl.cafile=${__PROJECT__}/bin/runtime/cacert.pem "
34
38
39
+export COMPOSER_ALLOW_SUPERUSER=1
40
+
35
41
if [ "$MIRROR" = 'china' ]; then
42
composer config -g repos.packagist composer https://mirrors.tencent.com/composer/
43
fi
0 commit comments