Skip to content

Commit

Permalink
chore: only activate flox if installed (#28038)
Browse files Browse the repository at this point in the history
  • Loading branch information
andehen authored Jan 29, 2025
1 parent 929d1c4 commit d8d7704
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
if [ -z "${FLOX_VERSION}" ]; then # Don't activate if already activated
flox activate
if command -v flox >/dev/null 2>&1; then # Only activate flox if installed
if [ -z "${FLOX_VERSION}" ]; then # Don't activate if already activated
flox activate
fi
fi

0 comments on commit d8d7704

Please sign in to comment.