mirror of
https://gitlab.com/shorewall/code.git
synced 2024-12-22 14:20:40 +01:00
busybox 'find' now supports -quit so use it if the installed version
supports that option Signed-off-by: Tom Eastep <teastep@shorewall.net>
This commit is contained in:
parent
fba5847fa3
commit
59736620fe
@ -382,20 +382,18 @@ uptodate() {
|
||||
|
||||
local dir
|
||||
local find
|
||||
local quit
|
||||
local quit=-quit
|
||||
local maxdepth
|
||||
|
||||
find=$(mywhich find)
|
||||
|
||||
[ -n "${find}" ] || return 1
|
||||
|
||||
if [ -h "${find}" ]; then
|
||||
if [ -h "${find}" ] && ! qt ${find} . -name foo -print -quit ; then
|
||||
#
|
||||
# 'Find' is provided by Busybox and doesn't support -quit.
|
||||
# 'Find' is provided by Busybox and this old versions don't support -quit.
|
||||
#
|
||||
quit=
|
||||
else
|
||||
quit=-quit
|
||||
fi
|
||||
|
||||
if [ "$AUTOMAKE" = recursive ]; then
|
||||
|
Loading…
Reference in New Issue
Block a user