Files
dotfiles/script/install.d/00-os.sh
2025-05-31 22:56:26 +01:00

15 lines
329 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 -e "${RED}Unknown OS: $OSTYPE${NC}"
fi