Remove WSL and MacOS support

This commit is contained in:
Shihaam Abdul Rahman 2021-04-29 15:23:59 +05:00
parent 8c713c8dd3
commit de015ea042
3 changed files with 18 additions and 1 deletions

View File

@ -29,4 +29,5 @@ chmod +x bml.sh
```
## Bugs
- :)
- Throws error and exists on MacOS and WSL \
Solution run: `rm osdetect.sh`

1
bml.sh
View File

@ -23,4 +23,5 @@ lightgreen=`tput setaf 10`
yellow=`tput setaf 11`
reset=`tput sgr0`
source osdetect.sh 2>/dev/null
source readpass.sh

15
osdetect.sh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/bash
if [ "uname -r | grep -oE microsoft" = "microsoft" ]
then
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
else
:
fi
source readpass.sh