mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-11-16 13:35:39 +01:00
Check if -dev is in version string. (#106)
This commit is contained in:
parent
e7d320f602
commit
70d9ab2e6b
@ -85,6 +85,13 @@ if [[ -f dist/ssh-audit.exe ]]; then
|
|||||||
echo -e "\nExecutable created in $(pwd)/dist/ssh-audit.exe\n"
|
echo -e "\nExecutable created in $(pwd)/dist/ssh-audit.exe\n"
|
||||||
fi
|
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.
|
# Remove the link we created, above.
|
||||||
rm ssh-audit.py
|
rm ssh-audit.py
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user