From 8b3eacda6249db97e8cbe0d1930eae14acc44270 Mon Sep 17 00:00:00 2001 From: Jonathan Maw Date: Wed, 5 Dec 2012 10:42:48 +0000 Subject: Make the create-vm script use curl if it successfully installs it --- create-vm | 2 ++ 1 file changed, 2 insertions(+) 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 -- cgit v1.2.1