From c6462e9fa4bc58f267209c00c86388961fd88d38 Mon Sep 17 00:00:00 2001 From: zen0bit Date: Fri, 12 Apr 2024 18:01:41 +0200 Subject: [PATCH] feat: os_basedof function --- quickget | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/quickget b/quickget index cc5b987..2803b7a 100755 --- a/quickget +++ b/quickget @@ -27,6 +27,14 @@ function cleanup() { fi } +function os_basedof() { + local SIMPLE_NAME="" + local BASED="" + SIMPLE_NAME="${1}" + BASED=$(os_info "${SIMPLE_NAME}" | cut -d'|' -f2) + echo "${BASED}" +} + if [ "${1}" == '--test-iso-url' ] || [ "${1}" == '-t' ]; then test_iso_url="on" if [ -n "$4" ]; then