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 () {
286
286
# NOTE: DO NOT use ls here because colorized versions spew control characters
287
287
# into the output list.
288
288
# 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 ' ^\*$' )
290
290
291
291
# (cd "$WORKON_HOME"; find -L . -depth 3 -path '*/bin/activate') | sed 's|^\./||' | sed 's|/bin/activate||' | sort
292
292
}
@@ -633,7 +633,7 @@ cpvirtualenv() {
633
633
done
634
634
635
635
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"
637
637
638
638
(cd " $WORKON_HOME " && (
639
639
virtualenvwrapper_run_hook " pre_cpvirtualenv" " $env_name " " $new_env " ;
You can’t perform that action at this time.
0 commit comments