Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
寮 (ryo@social.076.ne.jp)'s status on Wednesday, 23-Nov-2022 13:50:49 JST寮 @TerminalAutism @charliebrownau @furgar Portability is the big reason.
You could use a script like this ( https://gitler.moe/TechnicalSuwako/detect-os/src/branch/master/.local/bin/getsystem ) to detect the right OS and distro (currently limited to Linux, FreeBSD, and OpenBSD only though), but it's always nicer to have your scripts more streamlined rather than having to spam it all with "if on Linux and Artix, do this, else if on OpenBaSeD, do this, else if on FreeBSD, do this" all over the place.