From e7b61e7e5f96108bcafba0227309dafe948729c0 Mon Sep 17 00:00:00 2001 From: KunoiSayami Date: Sat, 9 Jul 2022 18:38:55 +0800 Subject: [PATCH] fix: Remove useless lines in checksum Signed-off-by: KunoiSayami --- vps2arch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vps2arch b/vps2arch index 170fb5f..76e39ea 100755 --- a/vps2arch +++ b/vps2arch @@ -52,7 +52,7 @@ download() { download_and_extract_bootstrap() { 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" download "iso/latest/$filename" > "$filename" sha1sum -c sha1sums.txt || exit 1