refactor: update sparkylinux to use web_pipe()

This commit is contained in:
Martin Wimpress 2024-04-19 22:19:20 +01:00 committed by Martin Wimpress
parent 4a52480fe6
commit 55a4c85820
1 changed files with 1 additions and 1 deletions

View File

@ -2776,7 +2776,7 @@ function get_sparkylinux() {
minimalgui) URL="https://sourceforge.net/projects/sparkylinux/files/base";; minimalgui) URL="https://sourceforge.net/projects/sparkylinux/files/base";;
*) URL="https://sourceforge.net/projects/sparkylinux/files/${EDITION}";; *) URL="https://sourceforge.net/projects/sparkylinux/files/${EDITION}";;
esac esac
HASH=$(wget -q -O- "${URL}/${ISO}.allsums.txt" | head -2 | grep 'iso' | cut_1) HASH=$(web_pipe "${URL}/${ISO}.allsums.txt" | head -2 | grep 'iso' | cut_1)
echo "${URL}/${ISO}" "${HASH}" echo "${URL}/${ISO}" "${HASH}"
} }