Skip to content

Commit f25529f

Browse files
committed
Change -a to &&
1 parent 7e72416 commit f25529f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,11 @@ runs:
123123
if [[ $retval -ne 0 ]]; then
124124
# don't fail "hard" if it's known failures that we cannot account for (yet)
125125
# pytype doesn't support 3.11+ yet
126-
if [[ "${INPUTS_LINTER}" == "pytype" -a "${INPUTS_PYTHON_VERSION}" =~ ^3\.(1[1-9]|[2-9][0-9])$ ]]; then
126+
if [[ "${INPUTS_LINTER}" == "pytype" && "${INPUTS_PYTHON_VERSION}" =~ ^3\.(1[1-9]|[2-9][0-9])$ ]]; then
127127
echo "::warning::pytype failed to run for Python ${INPUTS_PYTHON_VERSION}; this is likely due to pytype not yet supporting Python ${INPUTS_PYTHON_VERSION}"
128128
exit 0
129129
# fixit>1 doesn't work for 3.7
130-
elif [[ "${INPUTS_LINTER}" == "fixit" -a "${INPUTS_PYTHON_VERSION}" == "3.7" ]]; then
130+
elif [[ "${INPUTS_LINTER}" == "fixit" && "${INPUTS_PYTHON_VERSION}" == "3.7" ]]; then
131131
echo "::warning::fixit failed to run for Python ${INPUTS_PYTHON_VERSION}; this is likely due to fixit not supporting Python ${INPUTS_PYTHON_VERSION}"
132132
exit 0
133133
fi

0 commit comments

Comments
 (0)