Avoid use of GNU specific find argument
Created by: msikma
This changes the repo script to use a BSD/GNU compatible find
invocation. Can't test it too comprehensively but it seems to work on BSD find from Mac OS X, and GNU find.
Only a "tentative" fix because my internet is absolutely atrocious right now, and I just can't seem to finish downloading and running Redox... here's a small test showing that the two commands do the same, though (using gfind
for GNU).
$ ls -lah
total 8
drwxr-xr-x 4 msikma staff 136B Jun 11 22:26 .
drwxr-xr-x@ 93 msikma staff 3.1K Jun 11 22:19 ..
-rw-r--r-- 1 msikma staff 0B Jun 11 22:25 asdf
-rwxr-xr-x 1 msikma staff 3.6K Apr 4 11:05 setup.py
$ find . -exec stat -f "%Sm" -t "%s" {} +
1497187571
1497187540
1491271529
$ find . -exec stat -f "%Sm" -t "%s" {} +
1497187571
1497187540
1491271529
$ gfind . -exec stat -f "%Sm" -t "%s" {} +
1497187571
1497187540
1491271529
$ gfind . -printf "%Ts\n" # original command, doesn't work on BSD
1497187571
1497187540
1491271529