Permalink
Browse files

check if mc runs, fix #15

  • Loading branch information...
1 parent 011d133 commit 3e187a350a1b1b2843705d62db71f5fbd4d472e5 @yedpodtrzitko yedpodtrzitko committed Apr 20, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 activate.sh
View
@@ -69,7 +69,9 @@ autoenv_check_authz_and_run()
envfile=$1
if autoenv_check_authz "$envfile"; then
source "$envfile"
- else
+ return 0
+ fi
+ if [[ -z $MC_SID ]]; then #make sure mc is not running
autoenv_env
autoenv_env "WARNING:"
autoenv_env "This is the first time you are about to source $envfile":

0 comments on commit 3e187a3

Please sign in to comment.