Modular OS Detection
This commit is contained in:
		
							
								
								
									
										13
									
								
								bml.sh
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								bml.sh
									
									
									
									
									
								
							@@ -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
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user