feat: os_basedof function #1008
This commit is contained in:
commit
a6993b1b52
8
quickget
8
quickget
|
@ -133,6 +133,14 @@ function os_info() {
|
||||||
echo "${INFO}"
|
echo "${INFO}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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
|
if [ "${1}" == '--test-iso-url' ] || [ "${1}" == '-t' ]; then
|
||||||
test_iso_url="on"
|
test_iso_url="on"
|
||||||
if [ -n "$4" ]; then
|
if [ -n "$4" ]; then
|
||||||
|
|
Loading…
Reference in New Issue