From: relan Date: Mon, 27 Nov 2017 13:32:41 +0000 (+0300) Subject: tests: fix pycodestyle lookup X-Git-Tag: 0.9.1~3^2 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=6498d24f360df0bb45a1bf9e1c5382cf04e8d329;p=fdroidserver.git tests: fix pycodestyle lookup Pycodestyle is available as /usr/bin/pycodestyle-3 on Fedora. --- diff --git a/hooks/pre-commit b/hooks/pre-commit index 34a2312c..00d777f9 100755 --- a/hooks/pre-commit +++ b/hooks/pre-commit @@ -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