bml-cli/osdetect.sh

19 lines
283 B
Bash
Raw Normal View History

2021-04-29 15:08:22 +05:00
#!/bin/bash
if [ "uname -r | grep -oE microsoft" = "microsoft" ]
then
2021-04-29 15:17:09 +05:00
echo "${red}WSL Not Supported!${reset}" 1>&2
2021-04-29 15:08:22 +05:00
exit
elif [ "uname -a | grep -oE Darwin | tail -n1" = "Darwin" ]
then
2021-04-29 15:17:09 +05:00
echo "${red}MacOS Not Supported!${reset}" 1>&2
2021-04-29 15:08:22 +05:00
exit
else
:
fi
source readpass.sh