Skip to content

Commit

Permalink
Fix verify-yamllint.sh on prow
Browse files Browse the repository at this point in the history
  • Loading branch information
wzshiming committed Oct 12, 2023
1 parent e4f6c45 commit f4dddb5
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions hack/verify-yamllint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ ROOT_DIR="$(realpath "${DIR}/..")"
COMMAND=()
if command -v yamllint; then
COMMAND=(yamllint)
elif command -v python3; then
if ! python3 -m yamllint --help >/dev/null; then
python3 -m pip install --user yamllint
fi
COMMAND=(python3 -m yamllint)
elif command -v docker; then
COMMAND=(
docker run
Expand All @@ -39,7 +34,7 @@ elif command -v docker; then
"docker.io/cytopia/yamllint:1.26@sha256:1bf8270a671a2e5f2fea8ac2e80164d627e0c5fa083759862bbde80628f942b2"
)
else
echo "WARNING: yamllint, python3 or docker not installed" >&2
echo "WARNING: yamllint or docker not installed" >&2
exit 1
fi

Expand Down

0 comments on commit f4dddb5

Please sign in to comment.