Closed kemayo closed 7 years ago
Thanks @kemayo, that's fair enough, may I confirmed that if you have tested on FreeBSD and some Linux distros? Thanks again!
I tried it on Ubuntu as well as OSX. Give me a second to dig up something running FreeBSD so I can double-check there.
I have confirmed with FreeBSD, via vagrant. I also confirmed on CentOS, since I had that lying around.
Awesome @kemayo ! I'll review the codes and also test it from my side, if there is no more questions or any problems, I'll merge this, thanks!
@kemayo sorry for the late reply, I turned to use base -ot
to help compare the timestamp in a easier way in commit: https://github.com/PeterDaveHello/web-minify-helper/commit/ac24c5a118688822aa59f8fc2b576f24eaa0c79a, still thanks for your contribution!
Current
ls
-based modification detection fails on OSX, unless you've installed a newer version ofls
. We can make this work on OSX 10.10 or newer without requiring updated coreutils, if we just dodate -r
for the modification time.