-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #66
- Loading branch information
Showing
2 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ DISTBASE=${DISTMIRROR}/releases/amd64/autobuilds/current-install-amd64-minimal/ | |
FILE=$(wget -q $DISTBASE -O - | grep -o -e "install-amd64-minimal-\w*.iso" | uniq) | ||
|
||
wget -c $DISTBASE$FILE || exit 1 | ||
wget -c $DISTBASE$FILE.DIGESTS.asc || exit 2 | ||
wget -c $DISTBASE$FILE.DIGESTS || exit 2 | ||
|
||
# https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Media#Linux_based_verification | ||
#wget -O- https://gentoo.org/.well-known/openpgpkey/hu/wtktzo4gyuhzu8a4z5fdj3fgmr1u6tob?l=releng | gpg --import | ||
|
@@ -14,14 +14,14 @@ wget -c $DISTBASE$FILE.DIGESTS.asc || exit 2 | |
# Download key if missing | ||
gpg --locate-key [email protected] | ||
# Verify DIGESTS | ||
gpg --verify $FILE.DIGESTS.asc || exit 2 | ||
gpg --verify $FILE.DIGESTS || exit 2 | ||
|
||
echo "Verifying SHA512 ..." | ||
# grab SHA512 lines and line after, then filter out line that ends with iso | ||
echo "$(grep -A1 SHA512 $FILE.DIGESTS.asc | grep iso$)" | sha512sum -c || exit 2 | ||
echo "$(grep -A1 SHA512 $FILE.DIGESTS | grep iso$)" | sha512sum -c || exit 2 | ||
echo "Verifying BLAKE2 ..." | ||
# grab BLAK2 lines and line after, then filter out line that ends with iso | ||
blake2line=$(grep -A1 BLAKE2 $FILE.DIGESTS.asc | grep iso$) | ||
blake2line=$(grep -A1 BLAKE2 $FILE.DIGESTS | grep iso$) | ||
# remove /var/tmp*.../ part of filename | ||
echo "${blake2line/\/*\//}" | b2sum -c || exit 2 | ||
echo " - Awesome! everything looks good." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters