mirror of
https://github.com/zulip/zulip.git
synced 2026-07-09 21:21:47 +08:00
Instead just cd to the repository root for pyflakes. This is a marginally worse user experience, but should work on Mac OS where we don't have readlink -f. (imported from commit f3d1bfb086ff05642e438c16094415d98a6dab92)
20 lines
304 B
Bash
Executable File
20 lines
304 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SCRIPT_DIR="$(dirname "$0")"
|
|
EXITCODE=0
|
|
|
|
if ! "$SCRIPT_DIR"/jslint/check-all; then
|
|
EXITCODE=1;
|
|
fi
|
|
|
|
cd "$SCRIPT_DIR"/..;
|
|
|
|
if find . -name confirmation -prune -o -name '*.py' -print0 \
|
|
| xargs -0 pyflakes \
|
|
| grep -v 'imported but unused'; then
|
|
|
|
EXITCODE=1;
|
|
fi
|
|
|
|
exit $EXITCODE
|