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

15 lines
320 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
log_error "Unknown OS: $OSTYPE"
fi