fix: os_info script osx support

This commit is contained in:
Andrejus Kostarevas
2023-10-13 12:52:26 +01:00
parent a6ada90a93
commit fc10ef8481
2 changed files with 12 additions and 2 deletions

12
script/install.d/00-os_info.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Description:
# Print operating system information.
#
if [[ "$OSTYPE" == "darwin"* ]]; then
sw_vers
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
lsb_release -a
fi