Modular OS Detection

This commit is contained in:
Shihaam Abdul Rahman 2021-04-29 14:59:19 +05:00
parent b2544ca4a4
commit d3a0d06625

13
bml.sh
View File

@ -23,16 +23,7 @@ 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
OS=$(uname -r | grep -oE microsoft) source osdetect.sh 2>/dev/null
if [ "$OS" = "microsoft" ]
then
echo "${red}WSL Not Supported!${reset}"
exit
else
:
fi
source readpass.sh source readpass.sh