chiark / gitweb /
tests: fix pycodestyle lookup
[fdroidserver.git] / 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