chiark / gitweb /
tests: fix pycodestyle lookup
authorrelan <email@hidden>
Mon, 27 Nov 2017 13:32:41 +0000 (16:32 +0300)
committerrelan <email@hidden>
Mon, 27 Nov 2017 13:32:41 +0000 (16:32 +0300)
Pycodestyle is available as /usr/bin/pycodestyle-3 on Fedora.

hooks/pre-commit

index 34a2312ceae79f4c9f9a14c34943fc95aa167d2f..00d777f9829d3cdd92c43fb0b5d39f87b54e94ac 100755 (executable)
@@ -73,7 +73,7 @@ cmd_exists() {
 
 find_command() {
        for name in $@; do
-               for suff in "3" "-python3" ""; do
+               for suff in "3" "-3" "-python3" ""; do
                        cmd=${name}${suff}
                        if cmd_exists $cmd; then
                                echo $cmd