diff --git a/terminatorlib/pylint.sh b/terminatorlib/pylint.sh index 4e126560..208bdb7a 100755 --- a/terminatorlib/pylint.sh +++ b/terminatorlib/pylint.sh @@ -1,6 +1,11 @@ #!/bin/bash for file in *.py; do - echo -n "$file: " - pylint $file 2>&1 | grep "^Your code has been rated" + line=$(pylint $file 2>&1 | grep "^Your code has been rated") + rating=$(echo $line | cut -f 7 -d ' ') + previous=$(echo $line | cut -f 10 -d ' ') + + if [ "$rating" != "10.00/10" ]; then + echo "$file rated $rating (previously $previous)" + fi done