make warnings: find -d option is deprecated, find paths must precede expression 1
diablodale opened this issue · comments
In Makefile, the parameters to find
cause warnings/errors of deprecated options and expression precedence. This is due to an invalid use of the -d
parameter. -d
is deprecated and -d
doesn't take a numeric value after it. This two actions cause the warning and error seen.
Line 383 in 3620358
I think the intention was to use the -maxdepth
parameter.
In addition, there is the possibility of an error sometime in the future by using a wildcard in the following -name
. It needs to be single quoted so the shell glob doesn't expand it.
Line 227 in 3620358
Setup
Ubuntu 18.04
Docker 19.03.1 is installed
Go is not installed
Repo
- clone the rexray repo
- change pwd into the root of the repo
DRIVER=ebs make
Result
find: warning: the -d option is deprecated; please use -depth instead, because the latter is a POSIX-compliant feature.
find: paths must precede expression: `1'
Expected
No warnings or errors