feat: os_basedof function

This commit is contained in:
Martin Wimpress 2024-04-16 13:43:38 +01:00
commit 44f885551e
No known key found for this signature in database
GPG Key ID: 61DF940515E06DA3
1 changed files with 8 additions and 0 deletions

View File

@ -27,6 +27,14 @@ function cleanup() {
fi fi
} }
function os_credentials() {
local SIMPLE_NAME=""
local CREDE=""
SIMPLE_NAME="${1}"
CREDE=$(os_info "${SIMPLE_NAME}" | cut -d'|' -f3)
echo "${CREDE}"
}
function os_info() { function os_info() {
local SIMPLE_NAME="" local SIMPLE_NAME=""
local INFO="" local INFO=""