backends/on-machine: fix OUT_FILE not pointing to OUT_DIR if set

This commit is contained in:
lassulus 2025-04-06 22:41:43 -07:00
parent edb187f514
commit 066dbc7388

View file

@ -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