From 61933758148caee332ab0ca95f1a2feccd612b5e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Mon, 4 Jan 2021 21:07:08 +0100 Subject: [PATCH] omit sorting of meta file; provide time marks for newly generated meta files --- indexmeta.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/indexmeta.sh b/indexmeta.sh index e478324..43e360d 100644 --- a/indexmeta.sh +++ b/indexmeta.sh @@ -88,10 +88,11 @@ meta_dir(){ | while read -r v; do meta_line "$v" done >"$meta" + touch "$metat" RELEASE "$meta" elif [ -d "$dir/.index" -a "$dir" -nt "$metat" ] && LOCK "$meta"; then - cp -p "$meta" "$meta.ref"; touch "$meta" + touch "$meta" find "$dir" -type f -newer "$metat" \ -mindepth 1 -maxdepth 1 \ | grep -aE "$file_pattern" \ @@ -99,8 +100,6 @@ meta_dir(){ grep -qF " $(meta_name "$v")" "$meta" \ || meta_line "$v" done >>"$meta" - sort -u "$meta" >"$meta.ref" - mv "$meta.ref" "$meta" touch "$metat" RELEASE "$meta" -- 2.39.2