From 1482db00f4670f54efb72944a301a1dd974d50b4 Mon Sep 17 00:00:00 2001 From: Malte Voos Date: Fri, 5 Apr 2024 12:49:51 +0200 Subject: fix document id extraction --- flake.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index 8c86952..aef5d65 100644 --- a/flake.nix +++ b/flake.nix @@ -163,9 +163,9 @@ rsync --rsh="${ssh}" "$in" ${guest}:${documentDir} ${ssh} ${guest} "unzip '${documentDir}/$in_basename' -d ${documentDir}" - doc_id="$(${ssh} ${guest} find ${documentDir} -mindepth 1 -type d ! -name '\*.\*' -exec basename {} '\;')" + doc_id="$(${ssh} ${guest} find ${documentDir} -name '\*.metadata' -exec basename {} .metadata '\;')" - curl -o "$out" "http://127.0.0.1:${toString httpPort}/download/$doc_id/placeholder" + curl -f -o "$out" "http://127.0.0.1:${toString httpPort}/download/$doc_id/placeholder" ''; }; -- cgit 1.4.1