refactor: update dragonfly to use web_pipe()
This commit is contained in:
parent
a300b200a4
commit
03d905435d
2
quickget
2
quickget
|
@ -928,7 +928,7 @@ function releases_devuan() {
|
||||||
function releases_dragonflybsd() {
|
function releases_dragonflybsd() {
|
||||||
# If you remove "".bz2" from the end of the searched URL, you will get only the current release - currently 6.4.0
|
# If you remove "".bz2" from the end of the searched URL, you will get only the current release - currently 6.4.0
|
||||||
# We could add a variable so this behaviour is optional/switchable (maybe from option or env)
|
# We could add a variable so this behaviour is optional/switchable (maybe from option or env)
|
||||||
DBSD_RELEASES=$(curl -sL http://mirror-master.dragonflybsd.org/iso-images/ | grep -E -o '"dfly-x86_64-.*_REL.iso.bz2"' | grep -o -E '[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+' | tr '\n' ' ')
|
DBSD_RELEASES=$(web_pipe "http://mirror-master.dragonflybsd.org/iso-images/" | grep -E -o '"dfly-x86_64-.*_REL.iso.bz2"' | grep -o -E '[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+' | tr '\n' ' ')
|
||||||
echo "$DBSD_RELEASES"
|
echo "$DBSD_RELEASES"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue