From 70d9ab2e6befbdcf92f59989163ec4bfdbb6f94d Mon Sep 17 00:00:00 2001 From: Joe Testa Date: Wed, 25 Aug 2021 14:24:10 -0400 Subject: [PATCH] Check if -dev is in version string. (#106) --- build_windows_executable.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/build_windows_executable.sh b/build_windows_executable.sh index 4421b0d..7f1cbde 100755 --- a/build_windows_executable.sh +++ b/build_windows_executable.sh @@ -85,6 +85,13 @@ if [[ -f dist/ssh-audit.exe ]]; then echo -e "\nExecutable created in $(pwd)/dist/ssh-audit.exe\n" fi +# Ensure that the version string doesn't have '-dev' in it. +X=`dist/ssh-audit.exe | grep -E 'ssh-audit.py v.+\-dev'` > /dev/null +if [[ $? == 0 ]]; then + echo -e "\nError: executable's version number includes '-dev'." + exit 1 +fi + # Remove the link we created, above. rm ssh-audit.py