Skip to content

Commit

Permalink
Fix vf upgrade error related to sed
Browse files Browse the repository at this point in the history
  • Loading branch information
justinmayer committed Mar 12, 2024
1 parent 17d934b commit 8c8063b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Release type: patch

Fix `vf upgrade` error related to `sed`
2 changes: 1 addition & 1 deletion virtualfish/virtual.fish
Original file line number Diff line number Diff line change
Expand Up @@ -620,7 +620,7 @@ function __vf_upgrade --description "Upgrade virtualenv(s) to newer Python versi
if [ -L "$venv_path/bin/python$old_py_mv" ]; command rm "$venv_path/bin/python$old_py_mv"; end
command ln -s "$python$new_py_mv" "$venv_path/bin/python$new_py_mv"
if test -f "$venv_path/pyvenv.cfg"
command sed -i '' -e "s/$old_py_fv/$new_py_fv/g" "$venv_path/pyvenv.cfg"
command sed -i -e "s/$old_py_fv/$new_py_fv/g" "$venv_path/pyvenv.cfg"
end
# Clear caches
command find "$venv_path" -name "__pycache__" -type d -print0|xargs -0 rm -r --
Expand Down

0 comments on commit 8c8063b

Please sign in to comment.