Tools rebuild fix
This commit is contained in:
@@ -164,6 +164,7 @@ class RunScript {
|
|||||||
if (args.length > 2 && args[0] == "rebuild" && args[1] == "tools") {
|
if (args.length > 2 && args[0] == "rebuild" && args[1] == "tools") {
|
||||||
|
|
||||||
var lastArgument = new Path (args[args.length - 1]).toString ();
|
var lastArgument = new Path (args[args.length - 1]).toString ();
|
||||||
|
var cacheDirectory = Sys.getCwd ();
|
||||||
|
|
||||||
if (((StringTools.endsWith (lastArgument, "/") && lastArgument != "/") || StringTools.endsWith (lastArgument, "\\")) && !StringTools.endsWith (lastArgument, ":\\")) {
|
if (((StringTools.endsWith (lastArgument, "/") && lastArgument != "/") || StringTools.endsWith (lastArgument, "\\")) && !StringTools.endsWith (lastArgument, ":\\")) {
|
||||||
|
|
||||||
@@ -226,6 +227,10 @@ class RunScript {
|
|||||||
|
|
||||||
Sys.exit (0);
|
Sys.exit (0);
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
|
Sys.setCwd (cacheDirectory);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user