From 7fe07fc58674cfcca863591b4cff144735a9f8ae Mon Sep 17 00:00:00 2001 From: NorseGaud Date: Wed, 2 Mar 2022 07:33:23 -0500 Subject: [PATCH 1/3] lint.sh can't find proper bash location on mac and uses the old 3.x which doesn't support shopt -s inherit_errexit --- test/linting/lint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/linting/lint.sh b/test/linting/lint.sh index 0a75e0d9..71cb04eb 100755 --- a/test/linting/lint.sh +++ b/test/linting/lint.sh @@ -1,4 +1,4 @@ -#! /bin/bash +#!/usr/bin/env bash # version v0.2.0 unstable # executed by Make during CI or manually From 58bca91f9c55506deae959066b599313d330caa3 Mon Sep 17 00:00:00 2001 From: NorseGaud Date: Wed, 2 Mar 2022 07:37:25 -0500 Subject: [PATCH 2/3] acme_extract is being scanned by shellcheck due to permissions differences --- test/linting/lint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/linting/lint.sh b/test/linting/lint.sh index 71cb04eb..5fcb5365 100755 --- a/test/linting/lint.sh +++ b/test/linting/lint.sh @@ -105,7 +105,7 @@ function _shellcheck -not -path './target/docker-configomat/*' )" # macOS lacks parity for `-executable` but presently produces the same results: https://stackoverflow.com/a/4458361 - [[ "$(uname)" == "Darwin" ]] && FIND_EXEC="-perm +111 -type l -or" || FIND_EXEC="-executable" + [[ "$(uname)" == "Darwin" ]] && FIND_EXEC="-perm -711" || FIND_EXEC="-executable" # shellcheck disable=SC2248 F_BIN="$(find 'target/bin' ${FIND_EXEC} -type f)" F_BATS="$(find 'test' -maxdepth 1 -type f -iname '*.bats')" From 8b8b600fb99b42f55b9446918bdf125a2c3cdd22 Mon Sep 17 00:00:00 2001 From: Nathan Pierce Date: Wed, 2 Mar 2022 08:19:33 -0500 Subject: [PATCH 3/3] Update test/linting/lint.sh Co-authored-by: Casper --- test/linting/lint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/linting/lint.sh b/test/linting/lint.sh index 5fcb5365..2cace83a 100755 --- a/test/linting/lint.sh +++ b/test/linting/lint.sh @@ -1,4 +1,4 @@ -#!/usr/bin/env bash +#! /usr/bin/env bash # version v0.2.0 unstable # executed by Make during CI or manually