15 lines
414 B
Plaintext
15 lines
414 B
Plaintext
|
#!/bin/sh
|
||
|
|
||
|
ORIGIN_CHECKSUM=$(curl -o https://git.everestlinux.org/EverestLinux/glacier-pkgs/raw/branch/main/world/$input.checksum $input.checksum)
|
||
|
|
||
|
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
|