refactor: simplify releases_dragonflybsd()

This commit is contained in:
Martin Wimpress 2024-04-28 03:05:02 +01:00 committed by Martin Wimpress
parent 409523d402
commit 0f970a46f8

View File

@ -742,8 +742,7 @@ function releases_devuan() {
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
# We could add a variable so this behaviour is optional/switchable (maybe from option or env)
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 $(web_pipe "http://mirror-master.dragonflybsd.org/iso-images/" | grep -E -o '"dfly-x86_64-.*_REL.iso.bz2"' | grep -o -E '[[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+')
}
function releases_easyos() {