From 8e95338708d56d96b9f9ce40ccb59a4102b51520 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Thu, 9 Jul 2020 12:55:37 +0100 Subject: [PATCH] fix direnv strict_env evaluation .version-suffix does not contain a newline and therefore fails with read --- direnvrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direnvrc b/direnvrc index e5940a6..fc7849a 100644 --- a/direnvrc +++ b/direnvrc @@ -11,7 +11,7 @@ use_nix() { local version if [[ -f "${path}/.version-suffix" ]]; then - read -r version < "${path}/.version-suffix" + version=$(< "${path}/.version-suffix") elif [[ -f "${path}/.git/HEAD" ]]; then local head read -r head < "${path}/.git/HEAD"