bml-cli/osdetect.sh
Shihaam Abdul Rahman 1b63f49985 improved macos detect
2021-05-10 22:34:46 +05:00

22 lines
512 B
Bash

#!/bin/bash
if [ "uname -r | grep -oE microsoft" = "microsoft" ]
then
OS=windows
#echo ${red}WSL Not Supported!${reset} 1>&2
#exit
elif [ $(uname -a | grep -oE Darwin | tail -n1) = "Darwin" ]
then
OS=macos
export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"
#echo ${red}MacOS Not Supported!${reset} 1>&2
#exit
elif [ "uname -a | grep -oE Android" = "Android" ]
then
OS=android
else
:
fi
source readpass.sh