Skip to content

Commit

Permalink
This should work
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Bussdieker committed Jan 24, 2012
1 parent 0a24134 commit 586dd8d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions binscripts/gvm-installer
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash
BRANCH=$1
if [ "$(whoami)" != "root" ]; then
GVM_DEST="~"
GVM_DEST=~
GVM_NAME=.gvm
else
GVM_DEST=/usr/local
Expand Down Expand Up @@ -41,8 +41,10 @@ else
echo "Maybe send me the file name and I'll look for it next time :)"
echo
fi
echo "export GVM_ROOT=~/$GVM_NAME" > $GVM_DEST/$GVM_NAME/scripts/gvm
else
echo "export GVM_ROOT=$GVM_DEST/$GVM_NAME" > $GVM_DEST/$GVM_NAME/scripts/gvm
fi
echo "export GVM_ROOT=$GVM_DEST/$GVM_NAME" > $GVM_DEST/$GVM_NAME/scripts/gvm
echo "source \$GVM_ROOT/scripts/gvm-default" >> $GVM_DEST/$GVM_NAME/scripts/gvm
[[ -s "$GVM_DEST/$GVM_NAME/scripts/gvm" ]] && source "$GVM_DEST/$GVM_NAME/scripts/gvm"
echo "Installed GVM v$GVM_VERSION"
Expand Down

0 comments on commit 586dd8d

Please sign in to comment.