refactor: update slax to use web_pipe()

This commit is contained in:
Martin Wimpress 2024-04-19 22:17:29 +01:00 committed by Martin Wimpress
parent c071d1dd8d
commit b07b5cdec2
1 changed files with 3 additions and 3 deletions

View File

@ -2722,14 +2722,14 @@ function get_slax() {
case ${EDITION} in case ${EDITION} in
debian) debian)
URL="https://ftp.fi.muni.cz/pub/linux/slax/Slax-12.x" URL="https://ftp.fi.muni.cz/pub/linux/slax/Slax-12.x"
ISO=$(wget -q -O- "${URL}/md5.txt" | grep '64bit-' | cut -d' ' -f3 | tail -n1) ISO=$(web_pipe "${URL}/md5.txt" | grep '64bit-' | cut -d' ' -f3 | tail -n1)
;; ;;
slackware) slackware)
URL="https://ftp.fi.muni.cz/pub/linux/slax/Slax-15.x" URL="https://ftp.fi.muni.cz/pub/linux/slax/Slax-15.x"
ISO=$(wget -q -O- "${URL}/md5.txt" | grep '64bit-' | cut -d' ' -f3 | tail -n1) ISO=$(web_pipe "${URL}/md5.txt" | grep '64bit-' | cut -d' ' -f3 | tail -n1)
;; ;;
esac esac
HASH=$(wget -q -O- "${URL}/md5.txt" | grep '64bit-' | cut -d' ' -f1 | tail -n1) HASH=$(web_pipe "${URL}/md5.txt" | grep '64bit-' | cut -d' ' -f1 | tail -n1)
echo "${URL}/${ISO} ${HASH}" echo "${URL}/${ISO} ${HASH}"
} }