From 9e918a31f1a58ea3c971c649cfc12b18a609fb1d Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 15 Oct 2013 07:47:05 -0400 Subject: [PATCH] rvm & vim will only update if they're pre-installed --- bin/update | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/bin/update b/bin/update index 26bf10e4..8597a085 100755 --- a/bin/update +++ b/bin/update @@ -1,4 +1,4 @@ -#!/bin/zsh +#!/usr/bin/env zsh # Ask for the administrator password upfront sudo -v @@ -21,10 +21,15 @@ echo-g "==> Updating zsh, rvm and vim" # Then the rest install/zsh echo -if is_mac; then + +# Only update rvm is it is installed +if is_mac && command_exists rvm; then install/rvm echo fi -install/vim + +if [ -d ~/.vim ]; then + install/vim +fi echo-g "==> All done!"