Cleaned up install script and added file to be sourced

This commit is contained in:
Joshua Bussdieker
2011-11-17 22:34:17 -08:00
parent 8dd65d028a
commit 0f89311b7a
3 changed files with 8 additions and 1 deletions
+1
View File
@@ -0,0 +1 @@
0.0.1
+5 -1
View File
@@ -1,9 +1,13 @@
#!/bin/bash
GVM_DEST=~
ENV_FILE=~/.bashrc
SRC_REPO=git://github.com/jbussdieker/gvm.git
if [ -d $GVM_DEST/.gvm ]; then
echo "Already installed!"
else
echo "Installing"
cd $GVM_DEST && git clone git://github.com/jbussdieker/gvm.git .gvm > /dev/null 2>&1
cd $GVM_DEST && git clone $SRC_REPO .gvm > /dev/null 2>&1
echo '[[ -s "$HOME/.gvm/scripts/gvm" ]] && source "$HOME/.gvm/scripts/gvm"' >> $ENV_FILE
fi
+2
View File
@@ -0,0 +1,2 @@
export GVM_VERSION=`cat ../VERSION`
export PATH=$PATH:~/.gvm/bin