lizw 9 meses atrás
pai
commit
c3e82da15a
1 arquivos alterados com 5 adições e 0 exclusões
  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() {