Page MenuHomeDevCentral

Detect BSD as current OS
ClosedPublic

Authored by dereckson on Apr 15 2023, 13:48.
Tags
None
Referenced Files
F3996845: D3024.diff
Sat, Jan 11, 20:31
Unknown Object (File)
Fri, Jan 10, 21:19
Unknown Object (File)
Tue, Jan 7, 04:05
Unknown Object (File)
Thu, Dec 26, 03:02
Unknown Object (File)
Sat, Dec 21, 20:42
Unknown Object (File)
Sat, Dec 21, 20:42
Unknown Object (File)
Sat, Dec 21, 04:43
Unknown Object (File)
Fri, Dec 20, 04:09
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