From 6ec68acd80fad586f0b690a02260b54d7654dc76 Mon Sep 17 00:00:00 2001 From: Martin Wimpress Date: Sun, 28 Apr 2024 03:05:02 +0100 Subject: [PATCH] refactor: simplify releases_dragonflybsd() --- quickget | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/quickget b/quickget index 0763122..4459e12 100755 --- a/quickget +++ b/quickget @@ -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() {