Skip to content
Browse files

Added else so they know it's already installed

  • Loading branch information...
1 parent b357a53 commit ee17b90c53ead7f67a81a056dfacc6a288663129 @larzconwell larzconwell committed Feb 6, 2012
Showing with 8 additions and 0 deletions.
  1. +4 −0 recipes/centos.sh
  2. +4 −0 recipes/ubuntu.sh
View
4 recipes/centos.sh
@@ -47,11 +47,15 @@ if [ ! -f $(which convert) ]; then
echo -e "\n=> Installing imagemagick (this may take a while)..."
sudo yum install -y ImageMagick >> $log_file 2>&1
echo "==> done..."
+else
+ echo "==> ImageMagick already installed..."
fi
# Install Git
if [ ! -f $(which git) ]; then
echo -e "\n=> Installing git..."
sudo yum install -y git >> $log_file 2>&1
echo "==> done..."
+else
+ echo "==> Git already installed..."
fi
View
4 recipes/ubuntu.sh
@@ -57,11 +57,15 @@ if [ ! -f $(which convert) ]; then
echo -e "\n=> Installing imagemagick (this may take a while)..."
sudo $pm -y install imagemagick libmagick9-dev >> $log_file 2>&1
echo "==> done..."
+else
+ echo "==> ImageMagick already installed..."
fi
# Install git-core
if [ ! -f $(which git) ]; then
echo -e "\n=> Installing git..."
sudo $pm -y install git-core >> $log_file 2>&1
echo "==> done..."
+else
+ echo "==> Git already installed..."
fi

0 comments on commit ee17b90

Please sign in to comment.
Something went wrong with that request. Please try again.