Browse files

Update public-suffix.txt.

Also, created a mscript to simplify doing this in the future.
  • Loading branch information...
LadyCailin committed Dec 18, 2018
1 parent 165f16f commit 4c327a28e9ae1d25bf506fd0dc5deec965cd274b
@@ -1258,7 +1258,10 @@ public static String GetStacktraceString(Throwable t) {
* This generally condenses a 5 or 6 line operation into 1 line.
* @param arg
* @param arg The path to parse. May be null.
* @param env The environment, required to properly resolve relative paths.
* @param t Code target, for errors.
* @param def The default file, which is returned if {@code arg} is null. (Maybe also be null).
* @return
public static File GetFileFromArgument(String arg, Environment env, Target t, File def) throws ConfigRuntimeException {
@@ -391,7 +391,7 @@ public Mixed exec(final Target t, final Environment environment, Mixed... args)
} else { // TODO: Remove this check and tie into the VFS once that is complete.
if(Static.InCmdLine(environment)) {
File file = new File(download.val());
File file = Static.GetFileFromArgument(Construct.nval(download), environment, t, null);
if(!file.isAbsolute()) {
file = new File(t.file(), file.getPath());
Oops, something went wrong.

0 comments on commit 4c327a2

Please sign in to comment.