~doctormo/+junk/django-bash-extensions

« back to all changes in this revision

Viewing changes to get_venv

  • Committer: Martin Owens
  • Date: 2016-09-03 00:54:31 UTC
  • mfrom: (3.1.1 django-bash-extensions)
  • Revision ID: doctormo@gmail.com-20160903005431-042o1g7w31t8q1sh
Merge in Victor's changes

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
# This link's existance is cause for a change in the command line
41
41
# and the title for the virtual terminal application.
42
42
if [[ -L "$TARGET" ]]; then
 
43
   set +e
 
44
   ORIG=`readlink $TARGET`
 
45
   if [ ! -d "$ORIG" ]; then
 
46
     echo "[RM]"
 
47
     rm "$TARGET"
 
48
     exit 0
 
49
   fi
43
50
   echo -n "$1"
44
51
   cd "$TARGET"
45
52
   DIR=`pwd -P`