Files
PythonRobotics/rundiffstylecheck.sh
2021-02-20 21:30:55 +09:00

16 lines
393 B
Bash
Executable File

#!/bin/bash
echo "$(basename $0) start!"
VERSION=v0.1.6
wget https://github.com/AtsushiSakai/DiffSentinel/archive/${VERSION}.zip
unzip ${VERSION}.zip
./DiffSentinel*/starter.sh HEAD origin/master
check_result=$?
rm -rf ${VERSION}.zip DiffSentinel*
if [[ ${check_result} -ne 0 ]];
then
echo "Error: Your changes contain pycodestyle errors."
exit 1
fi
echo "$(basename $0) done!"
exit 0