Skip to content

Commit f4b21c1

Browse files
committed
Improve stdout for checksum verification
1 parent 9f5d5cd commit f4b21c1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/bash/sdkman-install.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,14 +227,16 @@ function __sdkman_checksum_zip() {
227227
fi
228228

229229
if [[ -n $cmd ]]; then
230-
__sdkman_echo_debug "Checksumming downloaded artifact ${zip_archive} (${algorithm})"
230+
__sdkman_echo_no_colour "Verifying artifact: ${zip_archive} (${algorithm}:${checksum})"
231231

232232
if ! eval "$cmd"; then
233233
rm -f "$zip_archive"
234234
echo ""
235235
__sdkman_echo_red "Stop! An invalid checksum was detected and the archive removed! Please try re-installing."
236236
return 1
237237
fi
238+
else
239+
__sdkman_echo_no_colour "Not able to perform checksum verification at this time."
238240
fi
239241
fi
240242
done < ${headers_file}

0 commit comments

Comments
 (0)