lizw 9 月之前
父节点
当前提交
c3e82da15a
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      hua_wei_yun/12wms86-sd-test.sh

+ 5 - 0
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() {