Skip to content

Commit dc56d42

Browse files
committed
Validate & checksum downloaded artifacts
1 parent 5e0a3a4 commit dc56d42

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/bash/sdkman-install.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,10 @@ function __sdkman_validate() {
178178
__sdkman_echo_debug "Archive: ${archive}"
179179

180180
if [[ "${archive_type}" == 'zip' ]]; then
181+
__sdkman_echo_debug "Checking zip archive"
181182
is_ok=$(unzip -t "$archive" | grep 'No errors detected in compressed data')
182183
elif [[ "${archive_type}" == 'tar' ]]; then
184+
__sdkman_echo_debug "Checking tar archive"
183185
is_ok=$(tar tf "$archive" | grep -v 'Error opening archive')
184186
else
185187
echo ""

0 commit comments

Comments
 (0)