Skip to content

Commit 5e0a3a4

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

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/bash/sdkman-install.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ function __sdkman_validate() {
174174
local -r archive_type=$(sed -n 's/^X-Sdkman-ArchiveType:\(.*\)$/\1/p' ${headers_file} | tr -cd '[:alnum:]')
175175
local is_ok
176176

177+
__sdkman_echo_debug "Archive Type: ${archive_type}"
178+
__sdkman_echo_debug "Archive: ${archive}"
179+
177180
if [[ "${archive_type}" == 'zip' ]]; then
178181
is_ok=$(unzip -t "$archive" | grep 'No errors detected in compressed data')
179182
elif [[ "${archive_type}" == 'tar' ]]; then

0 commit comments

Comments
 (0)