Skip to content

Commit

Permalink
make sure bash is at least 3.2, see #999
Browse files Browse the repository at this point in the history
  • Loading branch information
drwetter committed Feb 19, 2018
1 parent f812403 commit 5add07a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testssl.sh
Expand Up @@ -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
Expand Down

0 comments on commit 5add07a

Please sign in to comment.