Skip to content

Commit

Permalink
feat: Add new pretty_name function
Browse files Browse the repository at this point in the history
for now renamed to pretty_name_new
rename to pretty_name after merging needed chnges
  • Loading branch information
zen0bit committed Apr 16, 2024
1 parent bea27b1 commit 71b1394
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions quickget
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,14 @@ function pretty_name() {
echo "${PRETTY_NAME}"
}

function pretty_name_new() {
local SIMPLE_NAME=""
local PRETTY_NAME=""
SIMPLE_NAME="${1}"
PRETTY_NAME=$(os_info "${SIMPLE_NAME}" | cut -d'|' -f1)
echo "${PRETTY_NAME}"
}

function validate_release() {
local DISPLAY_NAME=""
local RELEASE_GENERATOR=""
Expand Down

0 comments on commit 71b1394

Please sign in to comment.