labs: split get_base_disk_path
Spin off get_base_disk_name from get_base_disk_path so we can get the disk name without the directory. Change-Id: Id813fd9bbf8a859b639f92a380c067dfc67a95c7
This commit is contained in:
parent
ec7422a2b9
commit
9fb0723cf9
@ -30,9 +30,12 @@ function exec_cmd {
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
function get_base_disk_name {
|
||||
echo "base-$VM_ACCESS-$DISTRO.vdi"
|
||||
}
|
||||
|
||||
function get_base_disk_path {
|
||||
echo $DISK_DIR/base-$VM_ACCESS-$DISTRO.vdi
|
||||
echo "$DISK_DIR/$(get_base_disk_name)"
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
|
Loading…
x
Reference in New Issue
Block a user