mirror of
https://github.com/jtesta/ssh-audit.git
synced 2024-11-22 18:41:40 +01:00
11 lines
350 B
Bash
11 lines
350 B
Bash
|
#!/bin/sh
|
||
|
_cdir=$(cd -- "$(dirname "$0")" && pwd)
|
||
|
type mypy > /dev/null 2>&1
|
||
|
if [ $? -ne 0 ]; then
|
||
|
echo "err: mypy (Optional Static Typing for Python) not found."
|
||
|
exit 1
|
||
|
fi
|
||
|
_htmldir="${_cdir}/../html/mypy-py3"
|
||
|
mkdir -p "${_htmldir}"
|
||
|
mypy --python-version 3.5 --config-file "${_cdir}/mypy.ini" --html-report "${_htmldir}" "${_cdir}/../ssh-audit.py"
|