Commit to make next commit comment epic
This commit is contained in:
parent
bebe36a497
commit
8c713c8dd3
@ -29,5 +29,4 @@ chmod +x bml.sh
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Bugs
|
## Bugs
|
||||||
- Throws error and exists on MacOS and WSL \
|
- :)
|
||||||
Solution run: `rm osdetect.sh`
|
|
||||||
|
3
bml.sh
3
bml.sh
@ -23,7 +23,4 @@ lightgreen=`tput setaf 10`
|
|||||||
yellow=`tput setaf 11`
|
yellow=`tput setaf 11`
|
||||||
reset=`tput sgr0`
|
reset=`tput sgr0`
|
||||||
|
|
||||||
#run osdetect.sh, throw error into void if file not found
|
|
||||||
source osdetect.sh 2>/dev/null
|
|
||||||
|
|
||||||
source readpass.sh
|
source readpass.sh
|
||||||
|
18
osdetect.sh
18
osdetect.sh
@ -1,18 +0,0 @@
|
|||||||
#!/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