Remove WSL and MacOS support
This commit is contained in:
parent
8c713c8dd3
commit
de015ea042
@ -29,4 +29,5 @@ chmod +x bml.sh
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Bugs
|
## Bugs
|
||||||
- :)
|
- Throws error and exists on MacOS and WSL \
|
||||||
|
Solution run: `rm osdetect.sh`
|
||||||
|
1
bml.sh
1
bml.sh
@ -23,4 +23,5 @@ lightgreen=`tput setaf 10`
|
|||||||
yellow=`tput setaf 11`
|
yellow=`tput setaf 11`
|
||||||
reset=`tput sgr0`
|
reset=`tput sgr0`
|
||||||
|
|
||||||
|
source osdetect.sh 2>/dev/null
|
||||||
source readpass.sh
|
source readpass.sh
|
||||||
|
15
osdetect.sh
Normal file
15
osdetect.sh
Normal 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
|
Loading…
x
Reference in New Issue
Block a user