Page MenuHomeDevCentral

Detect BSD as current OS
ClosedPublic

Authored by dereckson on Apr 15 2023, 13:48.
Tags
None
Referenced Files
F11748507: D3024.id.diff
Fri, Sep 19, 22:05
Unknown Object (File)
Thu, Sep 18, 05:25
Unknown Object (File)
Wed, Sep 17, 06:27
Unknown Object (File)
Mon, Sep 15, 09:45
Unknown Object (File)
Sun, Sep 14, 01:27
Unknown Object (File)
Sun, Sep 14, 00:35
Unknown Object (File)
Sat, Sep 13, 16:04
Unknown Object (File)
Mon, Sep 8, 09:04
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