From c9a4a84fa10bda3a6137efdded9bb88368572407 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Bergstro=CC=88m?= Date: Fri, 2 Feb 2024 17:51:44 -0300 Subject: [PATCH] fix: boolean logic for fail --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index a2e1f7c..89db754 100755 --- a/install.sh +++ b/install.sh @@ -31,7 +31,7 @@ if [ "${DOWNLOAD}" == "true" ]; then # /usr/local/bin exists and is writable by any user 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 + (echo "::error::Hadolint (version: ${VERSION}) could not be found. Exiting." && exit 1) mv /tmp/hadolint /usr/local/bin/hadolint chmod +x /usr/local/bin/hadolint fi