Skip to content

Commit

Permalink
Make the move fail silently in cases where there is just one venv.
Browse files Browse the repository at this point in the history
  • Loading branch information
FlipperPA committed Feb 28, 2023
1 parent 16dfd90 commit 1c1aace
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pyro.sh
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,6 @@ function pyro_delete() {

local IFS=:

touch ~/.pyromania-new
while read line; do
set $line

Expand All @@ -164,7 +163,7 @@ function pyro_delete() {
done < ~/.pyromania

# Replace the metadata file without the deleted entry.
mv ~/.pyromania-new ~/.pyromania
mv ~/.pyromania-new ~/.pyromania 2> /dev/null

unset ACTIVE_NAME
unset ACTIVE_DIR
Expand Down

0 comments on commit 1c1aace

Please sign in to comment.