Skip to content

Commit 8b595db

Browse files
committed
Ignore shellcheck warning about pipelines and redirects to the same file
1 parent 3854195 commit 8b595db

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

packer/linux/conf/buildkite-agent/hooks/environment

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export DOCKER_CONFIG="$BUILDKITE_DOCKER_CONFIG_TEMP_DIRECTORY"
1212

1313
if [ "${BUILDKITE_DOCKER_EXPERIMENTAL:-false}" = "true" ]
1414
then
15+
#shellcheck disable=SC2094 # Redirections to the same command are processed in order
1516
cat <<< "$(jq '.experimental="enabled"' "${DOCKER_CONFIG}/config.json")" > "${DOCKER_CONFIG}/config.json"
1617
fi
1718

packer/windows/conf/buildkite-agent/hooks/environment

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export DOCKER_CONFIG="$BUILDKITE_DOCKER_CONFIG_TEMP_DIRECTORY"
1212

1313
if [ "${BUILDKITE_DOCKER_EXPERIMENTAL:-false}" = "true" ]
1414
then
15+
#shellcheck disable=SC2094 # Redirections to the same command are processed in order
1516
cat <<< "$(jq '.experimental="enabled"' "${DOCKER_CONFIG}/config.json")" > "${DOCKER_CONFIG}/config.json"
1617
fi
1718

0 commit comments

Comments
 (0)