Skip to content

Commit

Permalink
chore: change download path
Browse files Browse the repository at this point in the history
  • Loading branch information
jbergstroem committed Feb 2, 2024
1 parent 5367ba2 commit ed68620
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,11 @@ 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 ./hadolint \
curl -L --fail -w "1" -o /usr/local/bin/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
chmod +x /usr/local/bin/hadolint
fi

echo "::debug:: $(hadolint --version | cut -d " " -f 4 2>&1) installed successfully"

0 comments on commit ed68620

Please sign in to comment.