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, Nov 22, 18:27
Unknown Object (File)
Tue, Nov 19, 02:09
Unknown Object (File)
Mon, Nov 18, 09:21
Unknown Object (File)
Mon, Nov 18, 06:37
Unknown Object (File)
Thu, Nov 14, 18:07
Unknown Object (File)
Sun, Nov 10, 17:42
Unknown Object (File)
Sun, Nov 10, 17:42
Unknown Object (File)
Sun, Nov 10, 14:51
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