mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
strip leading spaces from path
This commit is contained in:
parent
3beb75cdf1
commit
c1aa3a3f1a
@ -56,7 +56,7 @@ done
|
|||||||
# Get appliance uuids
|
# Get appliance uuids
|
||||||
machine_uuid=`vboxmanage showvminfo $appliance | grep UUID | head -1 | awk '{print $2}'`
|
machine_uuid=`vboxmanage showvminfo $appliance | grep UUID | head -1 | awk '{print $2}'`
|
||||||
hdd_uuid=`vboxmanage showvminfo $appliance | grep vdi | head -1 | awk '{print $8}' | cut -d ')' -f 1`
|
hdd_uuid=`vboxmanage showvminfo $appliance | grep vdi | head -1 | awk '{print $8}' | cut -d ')' -f 1`
|
||||||
hdd_path=`vboxmanage list hdds | grep "$appliance\/" | grep vdi | cut -c 14-`
|
hdd_path=`vboxmanage list hdds | grep "$appliance\/" | grep vdi | cut -c 14- | sed 's/^ *//'`
|
||||||
|
|
||||||
# Remove any shared folder
|
# Remove any shared folder
|
||||||
shared_folders=`vboxmanage showvminfo $appliance | grep Name | grep Host`
|
shared_folders=`vboxmanage showvminfo $appliance | grep Name | grep Host`
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user