cloudstack-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject git commit: updated refs/heads/master to c1aa3a3
Date Thu, 27 Feb 2014 15:11:59 GMT
Repository: cloudstack
Updated Branches:
  refs/heads/master 3beb75cdf -> c1aa3a3f1


strip leading spaces from path

Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/c1aa3a3f
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/c1aa3a3f
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/c1aa3a3f

Branch: refs/heads/master
Commit: c1aa3a3f1aa99330ad95cc4fbc5e72d057a7ed8f
Parents: 3beb75c
Author: Daan Hoogland <dhoogland@schubergphilis.com>
Authored: Thu Feb 27 16:11:52 2014 +0100
Committer: Daan Hoogland <dhoogland@schubergphilis.com>
Committed: Thu Feb 27 16:11:52 2014 +0100

----------------------------------------------------------------------
 tools/appliance/build.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/c1aa3a3f/tools/appliance/build.sh
----------------------------------------------------------------------
diff --git a/tools/appliance/build.sh b/tools/appliance/build.sh
index 7ba0611..f150a83 100644
--- a/tools/appliance/build.sh
+++ b/tools/appliance/build.sh
@@ -56,7 +56,7 @@ done
 # Get appliance uuids
 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_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
 shared_folders=`vboxmanage showvminfo $appliance | grep Name | grep Host`


Mime
View raw message