Page MenuHomeDevCentral

Detect BSD as current OS
ClosedPublic

Authored by dereckson on Apr 15 2023, 13:48.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Sep 28, 16:34
Unknown Object (File)
Fri, Sep 25, 14:29
Unknown Object (File)
Fri, Sep 25, 12:32
Unknown Object (File)
Sat, Sep 19, 01:32
Unknown Object (File)
Fri, Sep 18, 01:16
Unknown Object (File)
Thu, Sep 17, 13:36
Unknown Object (File)
Wed, Sep 16, 10:59
Unknown Object (File)
Tue, Sep 15, 04:43
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