Read a filesystem once where two probes were answering the same question
This commit is contained in:
@@ -354,8 +354,7 @@ for arr in sonarr radarr lidarr; do
|
||||
big_unknown=$((big_unknown + 1))
|
||||
done < <(find "$entry" -type f -size +"${min_mb}"M 2>/dev/null)
|
||||
|
||||
size_mb=$(du -sm "$entry" 2>/dev/null | cut -f1)
|
||||
size_mb=${size_mb:-0}
|
||||
size_mb=$(dir_size_mb "$entry") || size_mb=0
|
||||
|
||||
if [[ "$has_media" == false ]] && (( big_unknown > 0 )); then
|
||||
warn " no recognised media, but $big_unknown large file(s) of unknown type — holding: $base"
|
||||
|
||||
Reference in New Issue
Block a user