From 57e43770d59d6b263ea55b6b937dbfc10a78fa39 Mon Sep 17 00:00:00 2001 From: Slater-Victoroff Date: Fri, 31 May 2013 17:51:03 -0400 Subject: [PATCH] cleaning up, some syntax fixed and edge cases considered --- scripts/create-dev-env.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/create-dev-env.sh b/scripts/create-dev-env.sh index 9289aa42c6..520ce05b5c 100755 --- a/scripts/create-dev-env.sh +++ b/scripts/create-dev-env.sh @@ -393,11 +393,12 @@ if [[ `type -t mkvirtualenv` != "function" ]]; then ;; squeeze|wheezy|jessie|maya|lisa|olivia|nadia|natty|oneiric|precise|quantal|raring) - if [[ -f "/etc/bash_completion.d/virtualenvwrapper"]]; then + if [[ -f "/etc/bash_completion.d/virtualenvwrapper" ]]; then source /etc/bash_completion.d/virtualenvwrapper else error "Could not find virtualenvwrapper" exit 1 + fi ;; esac fi @@ -424,7 +425,7 @@ fi NUMPY_VER="1.6.2" SCIPY_VER="0.10.1" -if [[ ! -n $compile ]]; then +if [[ -n $compile ]]; then output "Downloading numpy and scipy" curl -sL -o numpy.tar.gz http://downloads.sourceforge.net/project/numpy/NumPy/${NUMPY_VER}/numpy-${NUMPY_VER}.tar.gz curl -sL -o scipy.tar.gz http://downloads.sourceforge.net/project/scipy/scipy/${SCIPY_VER}/scipy-${SCIPY_VER}.tar.gz