Skip to content

Commit ce5fa55

Browse files
committed
scripts/lint-python: fix syntax errors
``` ./scripts/lint-python: line 42: ((: 22 \& 1 : syntax error: invalid arithmetic operator (error token is "\& 1 ") ./scripts/lint-python: line 46: ((: 22 \& 2 : syntax error: invalid arithmetic operator (error token is "\& 2 ") ./scripts/lint-python: line 50: ((: 22 \& 4 : syntax error: invalid arithmetic operator (error token is "\& 4 ") ./scripts/lint-python: line 54: ((: 22 \& 8 : syntax error: invalid arithmetic operator (error token is "\& 8 ") ./scripts/lint-python: line 57: ((: 22 \& 16 : syntax error: invalid arithmetic operator (error token is "\& 16 ") ./scripts/lint-python: line 61: ((: 22 \& 32 : syntax error: invalid arithmetic operator (error token is "\& 32 ") ```
1 parent 42ad7cd commit ce5fa55

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

scripts/lint-python

+11-11
Original file line numberDiff line numberDiff line change
@@ -39,26 +39,26 @@ ${PYLINT} --persistent=no "${ARGS[@]}" || {
3939
# 32 usage error
4040
pylint_status=$?
4141
exitcode=0
42-
if (( ${pylint_status} \& 1 )); then
43-
echo fatal messsage >&2
42+
if (( ${pylint_status} & 1 )); then
43+
echo fatal message >&2
4444
exitcode=2
4545
fi
46-
if (( ${pylint_status} \& 2 )); then
47-
echo error messsage >&2
46+
if (( ${pylint_status} & 2 )); then
47+
echo error message >&2
4848
exitcode=2
4949
fi
50-
if (( ${pylint_status} \& 4 )); then
51-
echo warning messsage >&2
50+
if (( ${pylint_status} & 4 )); then
51+
echo warning message >&2
5252
exitcode=2
5353
fi
54-
if (( ${pylint_status} \& 8 )); then
55-
echo refactor messsage >&2
54+
if (( ${pylint_status} & 8 )); then
55+
echo refactor message >&2
5656
fi
57-
if (( ${pylint_status} \& 16 )); then
58-
echo convention messsage >&2
57+
if (( ${pylint_status} & 16 )); then
58+
echo convention message >&2
5959
fi
6060
# This should not happen!
61-
if (( ${pylint_status} \& 32 )); then
61+
if (( ${pylint_status} & 32 )); then
6262
echo usage error >&2
6363
exitcode=2
6464
fi

0 commit comments

Comments
 (0)