Mac - shell script check OS
Table of Contents
#
Mac - shell script check OS
Use shell script check Linux or Mac
#!/usr/bin/env bash
if [ `uname` == 'Linux' ];
then
echo 'Linux'
else
echo 'Mac'
fi