Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: pretty_name function #1012

Merged
merged 1 commit into from
Apr 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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