|
@@ -27,11 +27,13 @@ cd $HOME
|
|
|
if [ ! -z "$files" ];
|
|
if [ ! -z "$files" ];
|
|
|
then
|
|
then
|
|
|
./build/env/bin/hue runpylint --files "$files"
|
|
./build/env/bin/hue runpylint --files "$files"
|
|
|
|
|
+ FOUND_ISSUE=$?
|
|
|
|
|
+else
|
|
|
|
|
+ echo "No Python code files changed present"
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
-if [ -z "$files" ] || [ "$?" -eq "0" ]
|
|
|
|
|
|
|
+if [ "$FOUND_ISSUE" -eq "0" ]
|
|
|
then
|
|
then
|
|
|
- FOUND_ISSUE=0
|
|
|
|
|
echo "No Python code styling issues found"
|
|
echo "No Python code styling issues found"
|
|
|
else
|
|
else
|
|
|
echo "Found some Python code styling issues"
|
|
echo "Found some Python code styling issues"
|