From 9ab5633b0a71529b461757b39f7645eff262f12f Mon Sep 17 00:00:00 2001 From: aagist Date: Sat, 1 Oct 2022 23:04:46 +0800 Subject: [PATCH] fix: replace sha1sum with sha256sum --- vps2arch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vps2arch b/vps2arch index d1fde9c..09c6836 100755 --- a/vps2arch +++ b/vps2arch @@ -51,11 +51,11 @@ download() { } download_and_extract_bootstrap() { - local sha1 filename - download iso/latest/sha1sums.txt | egrep "[[:digit:]]-$cpu_type.tar.gz" > "sha1sums.txt" - read -r sha1 filename < "sha1sums.txt" + local sha256 filename + download iso/latest/sha256sums.txt | egrep "[[:digit:]]-$cpu_type.tar.gz" > "sha256sums.txt" + read -r sha256 filename < "sha256sums.txt" download "iso/latest/$filename" > "$filename" - sha1sum -c sha1sums.txt || exit 1 + sha256sum -c sha256sums.txt || exit 1 tar -xpzf "$filename" rm -f "$filename"