Skip to content

Commit 41a8c5e

Browse files
author
Benji Vesterby
committed
Adding debug prints for sum compare on download
1 parent 0bb6126 commit 41a8c5e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

gvm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@ then
2020
if [[ "$yn" == "Y" || "$yn" == "y" ]]
2121
then
2222
script=$(curl -sL "$GVMURL")
23-
if [[ $(echo "$script" | shasum -a 256) != "$EXPECTEDSUM" ]]
23+
DOWNLOADEDSUM=$(echo "$script" | shasum -a 256)
24+
if [[ $DOWNLOADEDSUM != "$EXPECTEDSUM" ]]
2425
then
2526
printf "Checksum does not match new version of GVM [%s]" "$SCRIPTVERSION"
27+
printf "Expected: %s" "$EXPECTEDSUM; Actual: $(echo "$script" | shasum -a 256)"
2628
exit 1
2729
fi
2830

0 commit comments

Comments
 (0)