chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b72d6d7
)
tests: fix pycodestyle lookup
author
relan
<email@hidden>
Mon, 27 Nov 2017 13:32:41 +0000
(16:32 +0300)
committer
relan
<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
patch
|
blob
|
history
diff --git
a/hooks/pre-commit
b/hooks/pre-commit
index 34a2312ceae79f4c9f9a14c34943fc95aa167d2f..00d777f9829d3cdd92c43fb0b5d39f87b54e94ac 100755
(executable)
--- 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