File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -286,7 +286,7 @@ virtualenvwrapper_show_workon_options () {
286286 # NOTE: DO NOT use ls here because colorized versions spew control characters
287287 # into the output list.
288288 # echo seems a little faster than find, even with -depth 3.
289- (cd " $WORKON_HOME " ; for f in * /$VIRTUALENVWRAPPER_ENV_BIN_DIR /activate; do echo $f ; done) 2> /dev/null | \s ed ' s|^\./||' | \s ed ' s|/bin /activate||' | \s ort | (unset GREP_OPTIONS; \e grep -v ' ^\*$' )
289+ (cd " $WORKON_HOME " ; for f in * /$VIRTUALENVWRAPPER_ENV_BIN_DIR /activate; do echo $f ; done) 2> /dev/null | \s ed ' s|^\./||' | \s ed ' s|/$VIRTUALENVWRAPPER_ENV_BIN_DIR /activate||' | \s ort | (unset GREP_OPTIONS; \e grep -v ' ^\*$' )
290290
291291# (cd "$WORKON_HOME"; find -L . -depth 3 -path '*/bin/activate') | sed 's|^\./||' | sed 's|/bin/activate||' | sort
292292}
@@ -633,7 +633,7 @@ cpvirtualenv() {
633633 done
634634
635635 virtualenv " $target_env " --relocatable
636- \s ed " s/VIRTUAL_ENV\(.*\)$env_name /VIRTUAL_ENV\1$new_env /g" < " $source_env /bin /activate" > " $target_env /$VIRTUALENVWRAPPER_ENV_BIN_DIR /activate"
636+ \s ed " s/VIRTUAL_ENV\(.*\)$env_name /VIRTUAL_ENV\1$new_env /g" < " $source_env /$VIRTUALENVWRAPPER_ENV_BIN_DIR /activate" > " $target_env /$VIRTUALENVWRAPPER_ENV_BIN_DIR /activate"
637637
638638 (cd " $WORKON_HOME " && (
639639 virtualenvwrapper_run_hook " pre_cpvirtualenv" " $env_name " " $new_env " ;
You can’t perform that action at this time.
0 commit comments