Skip to content

Commit 528cf6a

Browse files
author
Chloe Hutchinson
committed
Force recursive remove DOCKER_CONFIG tempdir
1 parent 2bb561e commit 528cf6a

File tree

2 files changed

+2
-2
lines changed
  • packer
    • linux/conf/buildkite-agent/hooks
    • windows/conf/buildkite-agent/hooks

2 files changed

+2
-2
lines changed

packer/linux/conf/buildkite-agent/hooks/pre-exit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -eu -o pipefail
44

55
# clean up our temporary docker config
66
if [[ -n "${BUILDKITE_DOCKER_CONFIG_TEMP_DIRECTORY:-}" && -d "$BUILDKITE_DOCKER_CONFIG_TEMP_DIRECTORY" ]]; then
7-
rmdir "$BUILDKITE_DOCKER_CONFIG_TEMP_DIRECTORY"
7+
rm -rf "$BUILDKITE_DOCKER_CONFIG_TEMP_DIRECTORY"
88
fi
99

1010
if [[ -n "${BUILDKITE_SECRETS_BUCKET:-}" && "${SECRETS_PLUGIN_ENABLED:-}" == "1" ]] ; then

packer/windows/conf/buildkite-agent/hooks/pre-exit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set -eu -o pipefail
44

55
# clean up our temporary docker config
66
if [[ -n "${BUILDKITE_DOCKER_CONFIG_TEMP_DIRECTORY:-}" && -d "$BUILDKITE_DOCKER_CONFIG_TEMP_DIRECTORY" ]]; then
7-
rmdir "$BUILDKITE_DOCKER_CONFIG_TEMP_DIRECTORY"
7+
rm -rf "$BUILDKITE_DOCKER_CONFIG_TEMP_DIRECTORY"
88
fi
99

1010
if [[ -n "${BUILDKITE_SECRETS_BUCKET:-}" && "${SECRETS_PLUGIN_ENABLED:-}" == "1" ]] ; then

0 commit comments

Comments
 (0)