diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2025-12-12 18:23:50 -0500 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2025-12-13 09:16:47 -0500 |
| commit | 38605cfc3a6e9f09c1b0d2f815a7f7d54f9f6621 (patch) | |
| tree | 1d2e849a6838f528dda5bd05bc4e3d0ece6b32ee /shlib/os.sh | |
| parent | Sync every 5m and re-enable gmail (diff) | |
| download | dotfiles-38605cfc3a6e9f09c1b0d2f815a7f7d54f9f6621.zip | |
Replace openbsd with debian
Diffstat (limited to 'shlib/os.sh')
| -rw-r--r-- | shlib/os.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/shlib/os.sh b/shlib/os.sh index 9c3b62c..4fb7989 100644 --- a/shlib/os.sh +++ b/shlib/os.sh @@ -13,3 +13,12 @@ os_is_macos() { os_is_openbsd() { [ "$(os_print)" = "OpenBSD" ] } + +os_is_linux() { + [ "$(os_print)" = "Linux" ] +} + +os_is_linux_debian() { + _linux_debian_id=$(. /etc/os-release && echo $ID) + [ os_is_linux ] && [ "$_linux_debian_id" = "debian" ] +} |