fix: os_info script osx support
This commit is contained in:
@@ -1,2 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
cat /etc/os-release
|
|
||||||
12
script/install.d/00-os_info.sh
Executable file
12
script/install.d/00-os_info.sh
Executable 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
|
||||||
Reference in New Issue
Block a user