Files
dotfiles/script/install.d/00-os_info.sh
2023-10-13 12:52:26 +01:00

13 lines
274 B
Bash
Executable File

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