From 89265780580d6d91ee4c05e225d33a4e3dc95fd9 Mon Sep 17 00:00:00 2001 From: Sathyam Vellal Date: Wed, 23 Apr 2014 15:35:05 +0530 Subject: [PATCH] Create SHENV_HOME if not present --- bash/shenvrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bash/shenvrc b/bash/shenvrc index 4c3ec9e..fefa33e 100644 --- a/bash/shenvrc +++ b/bash/shenvrc @@ -7,6 +7,10 @@ if [ "$SHENV_HOME" == "" ]; then return fi +if [ ! -d $SHENV_HOME ]; then + mkdir $SHENV_HOME +fi + function envcreate() { if [ -f $SHENV_HOME/$1-shenv.sh ]; then