bml-cli/osdetect.sh
2021-05-01 01:20:37 +05:00

18 lines
390 B
Bash

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