chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
pre-commit: fix warnings and errors
[fdroidserver.git]
/
hooks
/
pre-commit
diff --git
a/hooks/pre-commit
b/hooks/pre-commit
index 1929ee9116637d695cd1445feddd2469305dfc3e..662e5787f1f8ccf913915609dee4a69133654359 100755
(executable)
--- a/
hooks/pre-commit
+++ b/
hooks/pre-commit
@@
-59,12
+59,12
@@
fi
PEP8_IGNORE="E123,E501,W503"
err() {
PEP8_IGNORE="E123,E501,W503"
err() {
- echo ERROR: "$@"
+ echo
>&2
ERROR: "$@"
exit 1
}
warn() {
exit 1
}
warn() {
- echo WARNING: "$@"
+ echo
>&2
WARNING: "$@"
}
cmd_exists() {
}
cmd_exists() {
@@
-81,7
+81,7
@@
find_command() {
fi
done
warn "$1 is not installed, using dummy placeholder!"
fi
done
warn "$1 is not installed, using dummy placeholder!"
- echo -n
echo
+ echo -n
:
}
PYFLAKES=$(find_command pyflakes)
}
PYFLAKES=$(find_command pyflakes)