Page MenuHomeDevCentral

Detect BSD as current OS
ClosedPublic

Authored by dereckson on Apr 15 2023, 13:48.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Mar 28, 15:49
Unknown Object (File)
Thu, Mar 27, 07:38
Unknown Object (File)
Wed, Mar 19, 21:55
Unknown Object (File)
Sat, Mar 15, 20:28
Unknown Object (File)
Fri, Mar 14, 11:39
Unknown Object (File)
Fri, Mar 14, 07:47
Unknown Object (File)
Mon, Mar 10, 21:34
Unknown Object (File)
Mon, Mar 10, 21:34
Subscribers
None

Details

Summary

Allow to fix paths according hier(7):

use Keruald\OmniTools\OS\CurrentOS;

if (CurrentOS::isBSD()) {
    $luaPath = "/usr/local/bin/lua54";
}
Test Plan

CurrentOS::isBSD() on a FreeBSD dev server

Diff Detail

Repository
rKERUALD Keruald libraries development repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable