Skip to content

Commit ff3eb34

Browse files
committed
Only remove compressed artifact if it was actually created
1 parent 429c1b4 commit ff3eb34

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)