refactor: update nitrux to use web_pipe()

This commit is contained in:
Martin Wimpress 2024-04-19 22:11:02 +01:00 committed by Martin Wimpress
parent de79448b39
commit 8726bf9fad

View File

@ -2525,8 +2525,8 @@ function get_nitrux() {
local ISO=""
URLBASE="https://sourceforge.net/projects/nitruxos/files/Release"
URL="${URLBASE}/ISO"
ISO=$(wget -qO- 'https://sourceforge.net/projects/nitruxos/rss?path=/Release/ISO' | grep '.iso' | head -1 | cut -d']' -f1 | cut -d '/' -f4)
HASH=$(wget -q -O- "${URLBASE}/MD5/${ISONAME}.md5sum" | grep "${ISO}" | cut -d' ' -f1)
ISO=$(web_pipe 'https://sourceforge.net/projects/nitruxos/rss?path=/Release/ISO' | grep '.iso' | head -1 | cut -d']' -f1 | cut -d '/' -f4)
HASH=$(web_pipe "${URLBASE}/MD5/${ISONAME}.md5sum" | grep "${ISO}" | cut_1)
echo "${URL}/${ISO} ${HASH}"
}