bml-cli/osdetect.sh
Shihaam Abdul Rahman 89f8ed49c8 fix wsl detect
2021-05-04 21:59:50 +05:00

21 lines
566 B
Bash

#!/bin/bash
if [ "uname -r | grep -oE microsoft" = "microsoft" ] || [ "uname -r | grep -oE Microsoft" = "Microsoft" ] || [ "uname -r | grep -oE icrosoft" = "icrosoft" ]
then
WSL=true
#echo "${red}WSL Not Supported!${reset}" 1>&2
#exit
elif [ "uname -a | grep -oE Darwin | tail -n1" = "Darwin" ]
then
MAC=true
#echo "${red}MacOS Not Supported!${reset}" 1>&2
#exit
elif [ "uname -a | grep -oE Android" = "Android" ]
then
ANDROID=true
else
:
fi
source readpass.sh