bml-cli/osdetect.sh

21 lines
515 B
Bash
Raw Normal View History

2021-04-29 15:23:59 +05:00
#!/bin/bash
if [ "uname -r | grep -oE microsoft" = "microsoft" ] || [ "uname -r | grep -oE Microsoft" = "Microsoft" ]
2021-04-29 15:23:59 +05:00
then
WSL=true
#echo "${red}WSL Not Supported!${reset}" 1>&2
#exit
2021-04-29 15:23:59 +05:00
elif [ "uname -a | grep -oE Darwin | tail -n1" = "Darwin" ]
then
2021-05-01 01:33:21 +05:00
MAC=true
#echo "${red}MacOS Not Supported!${reset}" 1>&2
#exit
2021-05-01 04:38:03 +05:00
elif [ "uname -a | grep -oE Android" = "Android" ]
then
ANDROID=true
2021-04-29 15:23:59 +05:00
else
:
fi
source readpass.sh