Xwite před 3 roky
rodič
revize
562e03a0bd
1 změnil soubory, kde provedl 1 přidání a 3 odebrání
  1. 1 3
      .github/scripts/cronet.sh

+ 1 - 3
.github/scripts/cronet.sh

@@ -22,9 +22,7 @@ path=$GITHUB_WORKSPACE/gradle.properties
 current_cronet_version=`cat $path | grep CronetVersion | sed s/CronetVersion=//`
 current_cronet_version=`cat $path | grep CronetVersion | sed s/CronetVersion=//`
 echo "current_cronet_version: $current_cronet_version"
 echo "current_cronet_version: $current_cronet_version"
 
 
-if [[  $current_cronet_version == $lastest_cronet_version ]];then
-    echo "cronet is already latest"
-else
+if [[  $current_cronet_version < $lastest_cronet_version ]];then
     checkVersionExit
     checkVersionExit
     sed -i s/CronetVersion=.*/CronetVersion=$lastest_cronet_version/ $path
     sed -i s/CronetVersion=.*/CronetVersion=$lastest_cronet_version/ $path
     sed -i s/CronetMainVersion=.*/CronetMainVersion=$lastest_cronet_main_version/ $path
     sed -i s/CronetMainVersion=.*/CronetMainVersion=$lastest_cronet_main_version/ $path