puppetlabs / support-script-tooling

3 stars 5 forks source link

find: -printf: unknown primary or operator #11

Closed jordi-garcia closed 3 years ago

jordi-garcia commented 3 years ago

Describe the Bug

When running support-tooling.sh I get find: -printf: unknown primary or operator

Expected Behavior

Should run the desired menu. maybe run a pre-check on prerequisites for all the functions e.g. find but maybe the rest too mlr, gawk and gnuplot

Steps to Reproduce

Steps to reproduce the behavior: Jordis-MacBook-Pro:puppetserver jordi.garcia$ find --version find: illegal option -- - usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression] find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]

then

Jordis-MacBook-Pro:logs jordi.garcia$ support-tooling.sh

Environment

m0dular commented 3 years ago

Resolved by removing the GNU-only printf and replacing it with a terrible ls -t.