shell-scripts/utility/check_os.sh
2023-09-11 20:01:15 -05:00

6 lines
No EOL
145 B
Bash
Executable file

#!/bin/bash
# Check what OS we're on
OS=`awk -F = '/^NAME/{print $2}' /etc/os-release`
echo "OS found in /etc/os-release is $OS"
export OS="$OS"