From 2a8f4be419d5c8036693b0b74b249e73d759bff6 Mon Sep 17 00:00:00 2001 From: Ben Periton <104396+benperiton@users.noreply.github.com> Date: Mon, 15 Aug 2022 14:13:05 +0100 Subject: [PATCH] Update exec-env 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: https://github.com/asdf-community/asdf-direnv/issues/115 --- bin/exec-env | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/exec-env b/bin/exec-env index 1a495a6..9ab02a2 100755 --- a/bin/exec-env +++ b/bin/exec-env @@ -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