Skip to content

Commit

Permalink
If ENV_ROOT provided is null, defaults to PWD
Browse files Browse the repository at this point in the history
  • Loading branch information
sathyamvellal committed Feb 22, 2015
1 parent 733d08c commit 88064b8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bash/shenvrc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@ function envcreate()
echo \
"#!/bin/bash

ENV_ROOT=\"$2\" # The root directory of the environment
if [ "$2" != "" ]; then
TO_BE_ENV_ROOT=$2
else
TO_BE_ENV_ROOT=$PWD
fi
ENV_ROOT=\"$TO_BE_ENV_ROOT\" # The root directory of the environment

### Enter your variables, aliases and functions, etc in the respective arrays
function envinit() {
Expand Down

0 comments on commit 88064b8

Please sign in to comment.