You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by bh...@apache.org on 2013/03/01 16:10:52 UTC
git commit: refs/heads/master - CLOUDSTACK-1340: Just take the first
of results, query and remove shared folders
Updated Branches:
refs/heads/master 0f30c1e6b -> 26edb3c0a
CLOUDSTACK-1340: Just take the first of results, query and remove shared folders
Signed-off-by: Rohit Yadav <bh...@apache.org>
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/26edb3c0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/26edb3c0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/26edb3c0
Branch: refs/heads/master
Commit: 26edb3c0aa0b2a2015c3804ed29533c33f3ec976
Parents: 0f30c1e
Author: Rohit Yadav <bh...@apache.org>
Authored: Fri Mar 1 20:39:52 2013 +0530
Committer: Rohit Yadav <bh...@apache.org>
Committed: Fri Mar 1 20:39:52 2013 +0530
----------------------------------------------------------------------
tools/appliance/build.sh | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/26edb3c0/tools/appliance/build.sh
----------------------------------------------------------------------
diff --git a/tools/appliance/build.sh b/tools/appliance/build.sh
index 1644945..f479e5a 100644
--- a/tools/appliance/build.sh
+++ b/tools/appliance/build.sh
@@ -42,14 +42,13 @@ done
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-`
-shared_folders=`vboxmanage showvminfo $appliance | grep Name | grep Host | cut -c 8- | cut -d \' -f 1`
+shared_folders=`vboxmanage showvminfo $appliance | grep Name | grep Host`
# Remove any shared folder
-while [[ $shared_folders != "" ]]
+while [ "$shared_folders" != "" ]
do
- folder=`echo $shared_folders | head -1`
- vboxmanage sharedfolder remove systemvmtemplate --name $folder
- shared_folders=`echo $shared_folders | grep -v $folder`
+ vboxmanage sharedfolder remove systemvmtemplate --name "`echo $shared_folders | head -1 | cut -c 8- | cut -d \' -f 1`"
+ shared_folders=`vboxmanage showvminfo $appliance | grep Name | grep Host`
done
# Compact the virtual hdd