From 9e73e3ad70bd3b6459cbf27790a2e32bf7c4220f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Tue, 31 Jan 2023 17:54:37 +0100 Subject: [PATCH] fix error message if flake-inputs directory already exists This fixes a race condition for me where concurrent direnv shells creating this directory at the same time. --- direnvrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/direnvrc b/direnvrc index cfbe4b8..6ca5a6f 100644 --- a/direnvrc +++ b/direnvrc @@ -229,7 +229,7 @@ use_flake() { # also add garbage collection root for source local flake_input_paths - mkdir "$flake_inputs" + mkdir -p "$flake_inputs" flake_input_paths=$("${NIX_BIN_PREFIX}nix" flake archive \ --json \ --extra-experimental-features "nix-command flakes" \