Tools rebuild fix

This commit is contained in:
Joshua Granick
2016-11-28 14:22:46 -08:00
parent bba4765a02
commit 79e72d8b15
2 changed files with 5 additions and 0 deletions

View File

@@ -164,6 +164,7 @@ class RunScript {
if (args.length > 2 && args[0] == "rebuild" && args[1] == "tools") {
var lastArgument = new Path (args[args.length - 1]).toString ();
var cacheDirectory = Sys.getCwd ();
if (((StringTools.endsWith (lastArgument, "/") && lastArgument != "/") || StringTools.endsWith (lastArgument, "\\")) && !StringTools.endsWith (lastArgument, ":\\")) {
@@ -226,6 +227,10 @@ class RunScript {
Sys.exit (0);
} else {
Sys.setCwd (cacheDirectory);
}
}