修正打包命令的语法错误

This commit is contained in:
zhl 2021-02-03 14:22:21 +08:00
parent dc717cd4a5
commit e0e1bfc251

View File

@ -5,7 +5,7 @@ if [ ! -d $module_path ]; then
mkdir -p $module_path mkdir -p $module_path
fi fi
module_sub_path=$module_path"/node_modules" module_sub_path=$module_path"/node_modules"
#if [ ! -d $module_sub_path ]; then if [ ! -d $module_sub_path ]; then
npm install --prefer-offline --loglevel info --unsafe-perm=true --allow-root >> boundle.log npm install --prefer-offline --loglevel info --unsafe-perm=true --allow-root >> boundle.log
echo 'copy node_modules to /data/publish/node_packages' >> boundle.log echo 'copy node_modules to /data/publish/node_packages' >> boundle.log
cp -r node_modules $module_sub_path cp -r node_modules $module_sub_path