fix: Remove useless lines in checksum

Signed-off-by: KunoiSayami <i@leanhe.dev>
This commit is contained in:
KunoiSayami 2022-07-09 18:38:55 +08:00 committed by Felix Yan
parent 91b078a7de
commit e7b61e7e5f

View file

@ -52,7 +52,7 @@ download() {
download_and_extract_bootstrap() { download_and_extract_bootstrap() {
local sha1 filename local sha1 filename
download iso/latest/sha1sums.txt | fgrep "$cpu_type.tar.gz" > "sha1sums.txt" download iso/latest/sha1sums.txt | egrep "[[:digit:]]-$cpu_type.tar.gz" > "sha1sums.txt"
read -r sha1 filename < "sha1sums.txt" read -r sha1 filename < "sha1sums.txt"
download "iso/latest/$filename" > "$filename" download "iso/latest/$filename" > "$filename"
sha1sum -c sha1sums.txt || exit 1 sha1sum -c sha1sums.txt || exit 1