Skip to content

Commit

Permalink
chore: don't output download progress
Browse files Browse the repository at this point in the history
  • Loading branch information
jbergstroem committed Feb 2, 2024
1 parent 50e2a22 commit 58d8634
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if [ -x "$(command -v hadolint)" ]; then
INSTALLED_VERSION=$(hadolint --version | cut -d " " -f 4 2>&1)
echo "::debug::Found existing Hadolint version: ${INSTALLED_VERSION}"
if [ "${INSTALLED_VERSION}" != "${VERSION}" ]; then
echo "::debug::Hadolint version (${INSTALLED_VERSION}) does not match requested version (${VERSION})"
echo "::info::Hadolint version (${INSTALLED_VERSION}) does not match requested version (${VERSION})"
DOWNLOAD="true"
fi
else
Expand All @@ -29,7 +29,7 @@ if [ "${DOWNLOAD}" == "true" ]; then
echo "::debug::Downloading Hadolint ${VERSION}"
# https://github.com/actions/runner-images/issues/3727
# /usr/local/bin exists and is writable by any user
curl -L --fail -w "1" -o /tmp/hadolint \
curl -s -L --fail -w 1 -o /tmp/hadolint \
"https://github.com/hadolint/hadolint/releases/download/v${VERSION}/hadolint-Linux-x86_64" ||
echo "::error::Hadolint (version: ${VERSION}) could not be found. Exiting." && exit 1
mv /tmp/hadolint /usr/local/bin/hadolint
Expand Down

0 comments on commit 58d8634

Please sign in to comment.