Files
dotfiles/script/install.d/00-os_info.sh

15 lines
315 B
Bash

#!/usr/bin/env bash
# -----------------------------------------------------------------------------
# Description:
# Print operating system information.
#
if [[ "$OSTYPE" == "darwin"* ]]; then
sw_vers
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
cat /etc/os-release
else
echo "Unknown OS: $OSTYPE"
fi