tech-userlevel archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Ignoring subdirectories in daily's find_core
On 20.07.2012 18:22, Edgar Fuß wrote:
> Yet another /etc/daily thing:
>
> On a file server, I would like to run find_core, yet I don't want
> to descend into people's home directories.
>
> Would something like
>
> ignpaths=""
> if [ -n "$find_core_ignore_paths" ]; then
> ignpaths="$(printf " -o -path %s" $find_core_ignore_paths)"
> ignpaths="\\( ${ignpaths# -o } \\) -prune -o"
> else
> ignpaths=""
> fi
No objections, but why set ignpaths again in the "else" branch?
--
Jean-Yves Migeon
jeanyves.migeon%free.fr@localhost
Home |
Main Index |
Thread Index |
Old Index