Skip to content

Commit 9cc7173

Browse files
committed
update setup-swoole-cli-runtime.sh
1 parent 09eaf00 commit 9cc7173

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

sapi/src/template/make.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
?>
1010
#!/usr/bin/env bash
11+
shopt -s expand_aliases
1112
__PROJECT_DIR__=$(cd "$(dirname "$0")"; pwd)
1213
CLI_BUILD_TYPE=<?= $this->getBuildType() . PHP_EOL ?>
1314
SRC=<?= $this->phpSrcDir . PHP_EOL ?>
@@ -474,7 +475,7 @@
474475
echo $LIBS
475476
elif [ "$1" = "sync" ] ;then
476477
PHP_CLI=$(which php)
477-
test -f ${__PROJECT_DIR__}/bin/runtime/php && PHP_CLI="${__PROJECT_DIR__}/bin/runtime/php -d curl.cainfo=${__PROJECT_DIR__}/bin/runtime/cacert.pem -d openssl.cafile=${__PROJECT_DIR__}/bin/runtime/cacert.pem"
478+
test -f ${__PROJECT_DIR__}/runtime/php/php && PHP_CLI="${__PROJECT_DIR__}/runtime/php/php -d curl.cainfo=${__PROJECT_DIR__}/runtime/php/cacert.pem -d openssl.cafile=${__PROJECT_DIR__}/runtime/php/cacert.pem"
478479
$PHP_CLI -v
479480
$PHP_CLI sync-source-code.php --action run
480481
exit 0

setup-swoole-cli-runtime.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,8 @@ echo " USE PHP-CLI RUNTIME :"
237237
echo " "
238238
echo " export PATH=\"${APP_RUNTIME_DIR}:\$PATH\" "
239239
echo " "
240+
echo " shopt -s expand_aliases "
241+
echo " "
240242
echo " alias swoole-cli='swoole-cli -d curl.cainfo=${APP_RUNTIME_DIR}/cacert.pem -d openssl.cafile=${APP_RUNTIME_DIR}/cacert.pem' "
241243
echo " OR "
242244
echo " alias swoole-cli='swoole-cli -c ${APP_RUNTIME_DIR}/php.ini' "

0 commit comments

Comments
 (0)