Move os_credentials function where belongs

This commit is contained in:
zen0bit 2024-04-16 18:17:19 +02:00 committed by Martin Wimpress
parent 2b4c60fc1f
commit 2a67445c65
1 changed files with 7 additions and 6 deletions

View File

@ -28,12 +28,6 @@ function cleanup() {
}
function os_credentials() {
local SIMPLE_NAME=""
local CREDE=""
SIMPLE_NAME="${1}"
CREDE=$(os_info "${SIMPLE_NAME}" | cut -d'|' -f3)
echo "${CREDE}"
}
function os_info() {
@ -190,6 +184,13 @@ elif [ "${1}" == '--download-iso' ] || [ "${1}" == '-d' ]; then
set -- "$2"
fi
fi
function os_credentials() {
local SIMPLE_NAME=""
local CREDE=""
SIMPLE_NAME="${1}"
CREDE=$(os_info "${SIMPLE_NAME}" | cut -d'|' -f3)
echo "${CREDE}"
}
function pretty_name() {
local SIMPLE_NAME=""