summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Maw <jonathan.maw@codethink.co.uk>2012-12-05 10:42:48 +0000
committerJonathan Maw <jonathan.maw@codethink.co.uk>2012-12-05 10:42:48 +0000
commit8b3eacda6249db97e8cbe0d1930eae14acc44270 (patch)
treee4557930c61fe100b587b2811f0c06f85fed0fe5
parentd14f46b629d5f83c41987132d9160a5abbf39446 (diff)
downloadgenivi-initial-setup-8b3eacda6249db97e8cbe0d1930eae14acc44270.tar.gz
Make the create-vm script use curl if it successfully installs it
-rwxr-xr-xcreate-vm2
1 files changed, 2 insertions, 0 deletions
diff --git a/create-vm b/create-vm
index 1b36db1..84137e4 100755
--- a/create-vm
+++ b/create-vm
@@ -38,9 +38,11 @@ if ! which wget >/dev/null; then
if which yum >/dev/null; then
echo "Attempting to install curl using yum"
sudo yum install curl
+ USE_CURL=true
elif which apt-get >/dev/null; then
echo "Attempting to install curl using apt-get"
sudo apt-get install curl
+ USE_CURL=true
else
echo "I do not know how to install curl on this system. Please install curl or wget manually"
exit 1