We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e0a3a4 commit dc56d42Copy full SHA for dc56d42
src/main/bash/sdkman-install.sh
@@ -178,8 +178,10 @@ function __sdkman_validate() {
178
__sdkman_echo_debug "Archive: ${archive}"
179
180
if [[ "${archive_type}" == 'zip' ]]; then
181
+ __sdkman_echo_debug "Checking zip archive"
182
is_ok=$(unzip -t "$archive" | grep 'No errors detected in compressed data')
183
elif [[ "${archive_type}" == 'tar' ]]; then
184
+ __sdkman_echo_debug "Checking tar archive"
185
is_ok=$(tar tf "$archive" | grep -v 'Error opening archive')
186
else
187
echo ""
0 commit comments