[fix] github username in scripts
[dotfiles_afify.git] / .scripts / detect_os.sh
blobe33907d24ae7c23a944cacb6f2714c7d76b058bd
1 #!/usr/bin/env bash
3 distro=$(uname -a | awk '{print $2}')
5 case $OSTYPE in
6 "linux-gnu") echo linux $distro ;;
7 "darwin"*) echo mac ;;
8 "openbsd"*) echo openbsd ;;
9 esac