Skip to content

Commit

Permalink
Update exec-env
Browse files Browse the repository at this point in the history
When using with asdf-direnv with direnv configured as strict_env=true, it fails with `./exec-env:4: DENO_INSTALL_ROOT: unbound variable`

Original issue: asdf-community/asdf-direnv#115
  • Loading branch information
benperiton committed Aug 15, 2022
1 parent 87442fe commit 2a8f4be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/exec-env
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

DENO_INSTALL_ROOT=${DENO_INSTALL_ROOT:-}

if [ "$ASDF_INSTALL_VERSION" != "system" ]; then
if [ -z "$DENO_INSTALL_ROOT" ]; then
export DENO_INSTALL_ROOT=$ASDF_INSTALL_PATH/.deno
Expand Down

0 comments on commit 2a8f4be

Please sign in to comment.