Commits

takanao ENDOH  committed 574c73a

check existance of `activate` script

  • Participants
  • Parent commits b68ff13

Comments (0)

Files changed (1)

File shellscripts/goenvwrapper.sh

 
 
 # goof_show returns all environment under $GOENVHOME
-# TODO(ymotongpoo): check existance of `activate` script.
 function _goof_show() {
   if [ `_goof_validator = 0` ] ; then
     return 1
   fi
   for dir in "$GOENVHOME"/*; do
-    if [ -d "$dir" ]; then
+    if [ -d "$dir" -a -f "$dir/activate" ]; then
       local envname=${dir##*/}
       local prefix="  "
       if [ "$envname" = "$GOENVNAME" ]; then