From d3a0d0662580bf9bbb7cc054db2203c98ea6e7ed Mon Sep 17 00:00:00 2001 From: Shihaam Abdul Rahman Date: Thu, 29 Apr 2021 14:59:19 +0500 Subject: [PATCH] Modular OS Detection --- bml.sh | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/bml.sh b/bml.sh index 3a9ac77..73bb15e 100755 --- a/bml.sh +++ b/bml.sh @@ -23,16 +23,7 @@ lightgreen=`tput setaf 10` yellow=`tput setaf 11` reset=`tput sgr0` - -OS=$(uname -r | grep -oE microsoft) -if [ "$OS" = "microsoft" ] -then - echo "${red}WSL Not Supported!${reset}" - exit -else - : -fi - - +#run osdetect.sh, throw error into void if file not found +source osdetect.sh 2>/dev/null source readpass.sh