Skip to content

Commit

Permalink
feat: pretty_name function
Browse files Browse the repository at this point in the history
  • Loading branch information
zen0bit committed Apr 15, 2024
1 parent bea27b1 commit 0e4bb33
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 0e4bb33

Please sign in to comment.