From 066dbc738838b79be6bc80b88559cb88e0fffffd Mon Sep 17 00:00:00 2001 From: lassulus Date: Sun, 6 Apr 2025 22:41:43 -0700 Subject: [PATCH] backends/on-machine: fix OUT_FILE not pointing to OUT_DIR if set --- backends/on-machine.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backends/on-machine.nix b/backends/on-machine.nix index 647a19e..0dae0e0 100644 --- a/backends/on-machine.nix +++ b/backends/on-machine.nix @@ -37,7 +37,8 @@ let all_files_missing=true all_files_present=true ${lib.concatMapStringsSep "\n" (file: '' - if test -e ${lib.escapeShellArg file.path} ; then + OUT_FILE="$OUT_DIR"/${if file.secret then "secret" else "public"}/${file.generator}/${file.name} + if test -e "$OUT_FILE"; then all_files_missing=false else all_files_present=false