v2.3.0 - Package integrity checking

This commit is contained in:
lw-everestlinux
2022-09-06 12:34:32 -04:00
parent 22e368c5fa
commit 0807a13286
6 changed files with 26 additions and 7 deletions

14
scripts/GLACIER_INTEGRITY_CHECK Executable file
View File

@@ -0,0 +1,14 @@
#!/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