fix: Remove useless lines in checksum
Signed-off-by: KunoiSayami <i@leanhe.dev>
This commit is contained in:
parent
91b078a7de
commit
e7b61e7e5f
1 changed files with 1 additions and 1 deletions
2
vps2arch
2
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue