Răsfoiți Sursa

[CI] addToPATH should prepend (instead of append) input to PATH

Andy Li 7 ani în urmă
părinte
comite
67838829f5
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      tests/runci/System.hx

+ 2 - 2
tests/runci/System.hx

@@ -91,9 +91,9 @@ class System {
 	static public function addToPATH(path:String):Void {
 		switch (systemName) {
 			case "Windows":
-				Sys.putEnv("PATH", Sys.getEnv("PATH") + ";" + path);
+				Sys.putEnv("PATH", path + ";" + Sys.getEnv("PATH"));
 			case "Mac", "Linux":
-				Sys.putEnv("PATH", Sys.getEnv("PATH") + ":" + path);
+				Sys.putEnv("PATH", path + ":" + Sys.getEnv("PATH"));
 		}
 	}