Page MenuHomeDevCentral

Detect BSD as current OS
ClosedPublic

Authored by dereckson on Apr 15 2023, 13:48.
Tags
None
Referenced Files
F3629554: D3024.diff
Sun, Oct 6, 02:24
Unknown Object (File)
Sat, Oct 5, 05:03
Unknown Object (File)
Fri, Oct 4, 13:57
Unknown Object (File)
Fri, Oct 4, 13:57
Unknown Object (File)
Wed, Sep 11, 05:07
Unknown Object (File)
Tue, Sep 10, 00:45
Unknown Object (File)
Mon, Sep 9, 23:47
Unknown Object (File)
Mon, Sep 9, 19:03
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