diff --git a/hua_wei_yun/12wms86-sd-test.sh b/hua_wei_yun/12wms86-sd-test.sh index 7e492d8..4a9c12c 100644 --- a/hua_wei_yun/12wms86-sd-test.sh +++ b/hua_wei_yun/12wms86-sd-test.sh @@ -158,6 +158,11 @@ deployPull() { git pull echo "###--代码更新完成--------------------------------------------------------------------------###" echo "" + + 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/wms-ui/index.html $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/wms-ui/index.html + sed } deployServer() {