mirror of
				https://github.com/drwetter/testssl.sh.git
				synced 2025-11-04 07:45:27 +01:00 
			
		
		
		
	make sure bash is at least 3.2, see #999
This commit is contained in:
		@@ -5,6 +5,8 @@
 | 
			
		||||
 | 
			
		||||
[ -z "$BASH_VERSINFO" ] && printf "\n\033[1;35m Please make sure you're using \"bash\"! Bye...\033[m\n\n" >&2 && exit 245
 | 
			
		||||
[ $(kill -l | grep -c SIG) -eq 0 ] && printf "\n\033[1;35m Please make sure you're calling me without leading \"sh\"! Bye...\033[m\n\n"  >&2 && exit 245
 | 
			
		||||
[ ${BASH_VERSINFO[0]} -lt 3 ] && printf "\n\033[1;35m Minimum requirement is bash 3.2. You have $BASH_VERSION \033[m\n\n"  >&2 && exit 245
 | 
			
		||||
[ ${BASH_VERSINFO[0]} -le 3 -a ${BASH_VERSINFO[1]} -le 1 ] && printf "\n\033[1;35m Minimum requirement is bash 3.2. You have $BASH_VERSION \033[m\n\n"  >&2 && exit 245
 | 
			
		||||
 | 
			
		||||
# testssl.sh is a program for spotting weak SSL encryption, ciphers, version and some
 | 
			
		||||
# vulnerabilities or features
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user