Skip to content

Commit 1c0ff20

Browse files
authored
Merge pull request #113 from buildkite-plugins/toote_actual_path_removal
Cache path removal bug
2 parents 429c1b4 + ff3eb34 commit 1c0ff20

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

hooks/post-command

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ done
7474

7575
# remove temporary compressed artifacts
7676
if [ "$(plugin_read_config KEEP_COMPRESSED_ARTIFACTS 'false')" = 'false' ]; then
77-
if compression_active && [ -e "${ACTUAL_PATH}" ]; then
77+
if compression_active && [ "${already_compressed}" == 'true' ] && [ -e "${ACTUAL_PATH}" ]; then
7878
rm -rf "${ACTUAL_PATH}"
7979
fi
8080
fi

0 commit comments

Comments
 (0)