diff --git a/yxt-yn/pre-deploy-wms8.sh b/yxt-yn/pre-deploy-wms8.sh index 9c7a754..6466c19 100644 --- a/yxt-yn/pre-deploy-wms8.sh +++ b/yxt-yn/pre-deploy-wms8.sh @@ -75,11 +75,6 @@ pullCode() { isChange="0" fi echo "" - - # 设置 require_config.js 前端版本 - version=$(date +%Y_%m_%d_%H_%M_%S) - echo -e "$echoPrefix sed -i 's/_[0-9]\{4\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}/$version/g' $codePath/public/require_config.js $echoSuffix" - sed -i "s/_[0-9]\{4\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}/$version/g" $codePath/public/require_config.js } buildCode() { @@ -196,6 +191,10 @@ deployPull() { needBuild[idx]=$isChange fi done + # 设置 require_config.js 前端版本 + version=$(date +%_Y_%m_%d_%H_%M_%S) + echo -e "$echoPrefix sed -i 's/_[0-9]\{4\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}/$version/g' $codePath/public/require_config.js $echoSuffix" + sed -i "s/_[0-9]\{4\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}_[0-9]\{2\}/$version/g" $codePath/public/require_config.js echo "###--代码更新完成--------------------------------------------------------------------------###" echo "" }