Using bash, I want to find the operating system and notify the user. I tried:
OS='uname -s'
echo "$OS"
if [ "$OS" == 'Linux' ]; then
echo "Linux"
else
echo "Not Linux"
fi
I just get
uname -s
Not Linux
on the terminal, which is wrong. How do I correctly set the string to what uname returns?
Thanks