Commit cccd1b65 authored by Sean McGovern's avatar Sean McGovern Committed by Jean-Baptiste Kempf

contrib: use POSIX options for find(1)

-maxdepth is a GNU extension
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent b8873ae7
......@@ -45,7 +45,7 @@ fi
# process [dir] [filemask] [text only]
process() {
for file in `find $1 -maxdepth 1 -type f -name "$2"`
for file in `find $1 \( ! -name \`basename $1\` -o -type f \) -prune -type f -name "$2"`
do
if [ -n "$3" ]
then
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment