Skip to content

Commit

Permalink
add a little more info to the bootstrap process
Browse files Browse the repository at this point in the history
  • Loading branch information
atmos committed Jun 4, 2010
1 parent 8e3eb11 commit 6b9e1dc
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions bootstrap.sh 100644 → 100755
@@ -1,11 +1,28 @@
echo "Ensuring we have the latest version of cider installed"
echo "Run started `date`" >> ~/.cider.bootstrap.log 2>&1
which ruby >> ~/.cider.bootstrap.log 2>&1
which gem >> ~/.cider.bootstrap.log 2>&1

which gem | grep -q rvm
if [ $? -eq 0 ]; then
gem uninstall cider
gem install cider --no-rdoc --no-ri
gem uninstall cider -aIx >> ~/.cider.bootstrap.log 2>&1
gem install cider --no-rdoc --no-ri >> ~/.cider.bootstrap.log 2>&1
else
sudo gem uninstall cider
sudo gem install cider --no-rdoc --no-ri
sudo gem uninstall cider -aIx >> ~/.cider.bootstrap.log 2>&1
sudo gem install cider --no-rdoc --no-ri >> ~/.cider.bootstrap.log 2>&1
fi

echo "Cider installed successfully"

hash -r
cider
source ~/.cider.profile
if [ "$?" -eq "0" ]; then
if [ -d ~/.cider ]; then
mv ~/.cider.bootstrap.log ~/.cider
fi
source ~/.cider.profile
else
cat ~/.cider.bootstrap.log
echo ""
echo "Something went wonky with the install. :("
fi

0 comments on commit 6b9e1dc

Please sign in to comment.