Skip to content
This repository has been archived by the owner on May 22, 2018. It is now read-only.

Commit

Permalink
guard against git repo not being checked out correctly /cc #4
Browse files Browse the repository at this point in the history
  • Loading branch information
wfarr committed Mar 5, 2013
1 parent edb1d31 commit aa97ab0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion templates/env.sh.erb
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,8 @@ export PATH=bin:$PATH

# Boxen is active.

export BOXEN_SETUP_VERSION=`GIT_DIR=$BOXEN_HOME/repo/.git git rev-parse --short HEAD`
if [ -d "$BOXEN_HOME/repo/.git" ]; then
export BOXEN_SETUP_VERSION=`GIT_DIR=$BOXEN_HOME/repo/.git git rev-parse --short HEAD`
else
echo "Boxen could not load properly!"
fi

0 comments on commit aa97ab0

Please sign in to comment.