mirror of
https://github.com/quickemu-project/quickemu.git
synced 2024-06-03 05:25:32 +02:00
refactor: update nitrux to use web_pipe()
This commit is contained in:
parent
de79448b39
commit
8726bf9fad
4
quickget
4
quickget
|
@ -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}"
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user