feat: os_basedof function
This commit is contained in:
parent
bea27b1ffa
commit
c6462e9fa4
8
quickget
8
quickget
|
@ -27,6 +27,14 @@ function cleanup() {
|
|||
fi
|
||||
}
|
||||
|
||||
function os_basedof() {
|
||||
local SIMPLE_NAME=""
|
||||
local BASED=""
|
||||
SIMPLE_NAME="${1}"
|
||||
BASED=$(os_info "${SIMPLE_NAME}" | cut -d'|' -f2)
|
||||
echo "${BASED}"
|
||||
}
|
||||
|
||||
if [ "${1}" == '--test-iso-url' ] || [ "${1}" == '-t' ]; then
|
||||
test_iso_url="on"
|
||||
if [ -n "$4" ]; then
|
||||
|
|
Loading…
Reference in New Issue