From: Paul Hänsch Date: Mon, 12 Jul 2021 15:37:30 +0000 (+0200) Subject: include symlinked videos in list X-Git-Url: https://git.plutz.net/?p=serve0;a=commitdiff_plain;h=98ad1233c5a8f16b73b622b0025837b99bff1f3b include symlinked videos in list --- diff --git a/indexmeta.sh b/indexmeta.sh index 43e360d..e37e5da 100644 --- a/indexmeta.sh +++ b/indexmeta.sh @@ -83,7 +83,7 @@ meta_dir(){ if [ -d "$dir/.index" -a \! -f "$meta" ] && LOCK "$meta"; then touch "$meta" # preliminary touch to prevent concurrent generators - find "$dir" -type f -mindepth 1 -maxdepth 1 \ + find -L "$dir" -type f -mindepth 1 -maxdepth 1 \ | grep -aE "$file_pattern" \ | while read -r v; do meta_line "$v" @@ -93,7 +93,7 @@ meta_dir(){ RELEASE "$meta" elif [ -d "$dir/.index" -a "$dir" -nt "$metat" ] && LOCK "$meta"; then touch "$meta" - find "$dir" -type f -newer "$metat" \ + find -L "$dir" -type f -newer "$metat" \ -mindepth 1 -maxdepth 1 \ | grep -aE "$file_pattern" \ | while read -r v; do