gofed / go-macros

Rpm mechanics for Go packaging
4 stars 7 forks source link

find: warning: you have specified the -maxdepth option after a non-option argument -iname #46

Closed ingvagabund closed 6 years ago

ingvagabund commented 6 years ago
$ find . -iname '*.md' -type f -maxdepth 1
find: warning: you have specified the -maxdepth option after a non-option argument -iname, but options are not positional (-maxdepth affects tests specified before it as well as those specified after it).  Please specify options before other arguments.

Moving the -maxdepth before -iname silences the warning:

$ find . -maxdepth 1 -type f -iname '*.md'

Warning coming from here: https://github.com/gofed/go-macros/blob/master/bin/go-rpm-integration#L178

ingvagabund commented 6 years ago

@nim-nim

ingvagabund commented 6 years ago

https://github.com/gofed/go-macros/commit/90f7dfa4b6bbcc6eb85b9b667c66d5e5cf46470a