feat: Add function to show short info about OS

This commit is contained in:
zen0bit 2024-04-12 18:03:13 +02:00
parent bea27b1ffa
commit 0a472db085
1 changed files with 8 additions and 0 deletions

View File

@ -27,6 +27,14 @@ function cleanup() {
fi
}
function os_about() {
local SIMPLE_NAME=""
local ABOUT=""
SIMPLE_NAME="${1}"
ABOUT=$(os_info "${SIMPLE_NAME}" | cut -d'|' -f5)
echo "${ABOUT}"
}
if [ "${1}" == '--test-iso-url' ] || [ "${1}" == '-t' ]; then
test_iso_url="on"
if [ -n "$4" ]; then