X-Git-Url: http://git.plutz.net/?a=blobdiff_plain;f=indexmeta.sh;h=43e360d2bfcfab9f4cc7ea2016b971f981239227;hb=24132f70197388d7dc44965d1812c9228acfb642;hp=e478324647de9c44239016b37e884095012caeca;hpb=0437fb0d2660c436ee3753b793ed224fa7e36db6;p=serve0 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"