PlatformSetup: openfl alias setup on Linux was missing try/catch, but lime alias setup and other platforms had it

This commit is contained in:
Josh Tynjala
2023-12-08 09:45:57 -08:00
parent c40ec312fc
commit e6205bf3aa

View File

@@ -1112,6 +1112,8 @@ class PlatformSetup
catch (e:Dynamic) {} catch (e:Dynamic) {}
} }
else else
{
try
{ {
System.runCommand("", "sudo", [ System.runCommand("", "sudo", [
"cp", "cp",
@@ -1129,6 +1131,8 @@ class PlatformSetup
System.runCommand("", "sudo", ["chmod", "755", "/usr/local/bin/openfl"], false); System.runCommand("", "sudo", ["chmod", "755", "/usr/local/bin/openfl"], false);
installedCommand = true; installedCommand = true;
} }
catch (e:Dynamic) {}
}
} }
if (!installedCommand) if (!installedCommand)