shell-scripts/utility/check_os.sh

6 lines
145 B
Bash
Raw Permalink Normal View History

#!/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"