diff options
author | tv <tv@krebsco.de> | 2025-04-09 01:45:52 +0200 |
---|---|---|
committer | tv <tv@krebsco.de> | 2025-04-09 01:46:31 +0200 |
commit | c09b3c1fde18c6792af922e617b48fd94f5072a4 (patch) | |
tree | 8334b05d3242912a95b8c3c4d6e405d3bc600c85 | |
parent | 281fc9a078471eae2a44fa80bd13b5008bc92dcd (diff) |
-rw-r--r-- | pkgs/populate/default.nix | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/pkgs/populate/default.nix b/pkgs/populate/default.nix index b67f761..103235f 100644 --- a/pkgs/populate/default.nix +++ b/pkgs/populate/default.nix @@ -189,14 +189,15 @@ let ${findutils}/bin/find "$PASSAGE_DIR" -type f -name \*.age -follow | while read -r age_path; do - rel_name=''${age_path#$PASSAGE_DIR} - rel_name=''${rel_name%.age} + pass_name=''${age_path#$PASSAGE_DIR/} + pass_name=''${pass_name%.age} - tmp_path=$tmp_dir/$rel_name + out=$tmp_dir/$pass_name - ${coreutils}/bin/mkdir -p "$(${coreutils}/bin/dirname "$tmp_path")" - ${passage}/bin/passage show "$rel_name" > "$tmp_path" - ${coreutils}/bin/touch -r "$age_path" "$tmp_path" + ${coreutils}/bin/mkdir -p "$(${coreutils}/bin/dirname "$out")" + ${passage}/bin/passage show "$pass_name" > "$out" + + ${coreutils}/bin/touch -r "$age_path" "$out" done ${findutils}/bin/find "$tmp_dir" -type d \ |