2022-09-06 12:34:32 -04:00
|
|
|
#!/bin/sh
|
|
|
|
|
2022-09-06 13:54:31 -04:00
|
|
|
ORIGIN_CHECKSUM=$($GLACIER_DOWNLOAD_BACKEND $GREPO1/$input.checksum || $GLACIER_DOWNLOAD_BACKEND $GREPO2/$input.checksum || $GLACIER_DOWNLOAD_BACKEND $GREPO3/$input.checksum || $GLACIER_DOWNLOAD_BACKEND $GREPO4/$input.checksum || $GLACIER_DOWNLOAD_BACKEND $GREPO5/$input.checksum || $GLACIER_DOWNLOAD_BACKEND $GREPO6/$input.checksum || $GLACIER_DOWNLOAD_BACKEND $GREPO7/$input.checksum || $GLACIER_DOWNLOAD_BACKEND $GREPO8/$input.checksum)
|
2022-09-06 12:34:32 -04:00
|
|
|
|
|
|
|
PKG_CHECKSUM=$(sha256sum $input.tar.gz)
|
|
|
|
|
|
|
|
if [ "$ORIGIN_CHECKSUM" == "$PKG_CHECKSUM" ]; then
|
|
|
|
printf "$green [ $check ]$reset Integrity check passed.\n"
|
|
|
|
rm $input.checksum
|
|
|
|
else
|
|
|
|
printf "$red [ $error ]$reset Integrity check failed.\n"
|
|
|
|
rm $input.checksum
|
|
|
|
exit 1
|
|
|
|
fi
|