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:
Roger Luethi 2014-09-15 16:17:28 +02:00
parent ec7422a2b9
commit 9fb0723cf9

View File

@ -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)"
}
#-------------------------------------------------------------------------------