Procházet zdrojové kódy

Arreglo cuando el branch no posee el formato vX.Y.Z

gabriel před 7 roky
rodič
revize
938c72e8d8

+ 7 - 3
tools/src/UpdateFlowdatCommand.php

@@ -30,9 +30,13 @@ class UpdateFlowdatCommand extends Command
         $remote = $input->getArgument("remote");
         $remote = $input->getArgument("remote");
 	$tag  = strtolower($input->getArgument("tag")) === 'true';
 	$tag  = strtolower($input->getArgument("tag")) === 'true';
 
 
-	$values = explode('.', $version);
-	unset ($values[count($values) - 1]);
-	$versionOnly = implode ('.', $values);
+        if (substr($version, 0, 1) === 'v') {
+            $values = explode('.', $version);
+            unset ($values[count($values) - 1]);
+            $versionOnly = implode ('.', $values);
+        } else {
+            $versionOnly = $values;
+        }
 
 
         $realpath = realpath(".");
         $realpath = realpath(".");
         $dir = dirname($realpath);
         $dir = dirname($realpath);

+ 7 - 3
tools/src/UpdateFlowdatModulesCommand.php

@@ -31,9 +31,13 @@ class UpdateFlowdatModulesCommand extends Command
         $tag  = strtolower($input->getArgument("tag")) === 'true';
         $tag  = strtolower($input->getArgument("tag")) === 'true';
 
 
 	if ($tag) {
 	if ($tag) {
-            $values = explode('.', $version);
-            unset ($values[count($values) - 1]);
-            $versionOnly = implode ('.', $values);
+            if (substr($version, 0, 1) === 'v') {
+                $values = explode('.', $version);
+                unset ($values[count($values) - 1]);
+                $versionOnly = implode ('.', $values);
+            } else {
+                $versionOnly = $values;
+            }
 	} else {
 	} else {
             $versionOnly = $version;
             $versionOnly = $version;
 	}
 	}