Commit b79fa9fc authored by tywldx's avatar tywldx

update

parent 743e8a84
...@@ -16,12 +16,24 @@ sh $config_server/show_info.sh $project BUILD $desc `hostname` ...@@ -16,12 +16,24 @@ sh $config_server/show_info.sh $project BUILD $desc `hostname`
# 第一步 将nginx项目的所有文件进行打包 # 第一步 将nginx项目的所有文件进行打包
cd $project_path/$project cd $project_path/$project
if [ "$node_version" = "node4" ] ;then package_check_file=`find ./ -maxdepth 1 -name "package.json"`
echo "----node-V4---${node4_path}/npm install" if [ -n "$package_check_file" ];then
${node4_path}/npm install item=`diff -qrs $file1 $file2`
else if [[ $item =~ "identical" ]]; then
npm --registry http://172.16.3.15:4873 install echo "本次package无变更"
else
echo "本次package有变更,将要执行npm install"
if [ "$node_version" = "node4" ] ;then
echo "----node-V4---${node4_path}/npm install"
${node4_path}/npm install
else
npm --registry http://172.16.3.15:4873 install
fi
fi
fi fi
yes | cp package.json package_diff.json
bower_json=`find ./ -maxdepth 1 -name "bower.json"` bower_json=`find ./ -maxdepth 1 -name "bower.json"`
if [ -n "$bower_json" ];then if [ -n "$bower_json" ];then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment