feat: Add function to show default live OS credentials

This commit is contained in:
zen0bit 2024-04-12 18:02:13 +02:00
parent bea27b1ffa
commit f5d87cf419
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}"
}
if [ "${1}" == '--test-iso-url' ] || [ "${1}" == '-t' ]; then if [ "${1}" == '--test-iso-url' ] || [ "${1}" == '-t' ]; then
test_iso_url="on" test_iso_url="on"
if [ -n "$4" ]; then if [ -n "$4" ]; then