|
@@ -44,7 +44,7 @@ class Sys {
|
|
|
public inline static function args() : Array<String> {
|
|
|
var args = lua.Lib.tableToArray(lua.Lua.arg).copy();
|
|
|
args.shift();
|
|
|
- return args;
|
|
|
+ return args;
|
|
|
}
|
|
|
public static function command( cmd : String, ?args : Array<String> ) : Int {
|
|
|
cmd = Boot.shellEscapeCmd(cmd, args);
|
|
@@ -74,7 +74,7 @@ class Sys {
|
|
|
s = s.gsub('%s+$', '');
|
|
|
s = s.gsub('[\n\r]+', ' ');
|
|
|
if (s == "Darwin") return "Mac";
|
|
|
- else if (s.lower().find("bsd") > 0) return "BSD";
|
|
|
+ else if (s.lower().find("bsd") != null) return "BSD";
|
|
|
else return "Linux";
|
|
|
}
|
|
|
case "\\" : return "Windows";
|