diff --git a/templates/env.sh.erb b/templates/env.sh.erb index e02adbb..133d2ee 100644 --- a/templates/env.sh.erb +++ b/templates/env.sh.erb @@ -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