Closed klaaspieter closed 10 years ago
Thanks for opening this. We just found out today that this command won't actually work, and we're working on finding a different command that does work.
I think this will work, but I haven't tested it yet, and it feels a bit awkward:
if brew outdated --quiet | grep -qx <package-name>; then brew upgrade <package-name>; fi
So, for xctool:
if brew outdated --quiet | grep -qx xctool; then brew upgrade xctool; fi
Just tested this in my project, works flawlessly.
Okay, thanks, I'll update the docs. If someone has a better suggestion for the command I'm all ears.
The documentation about the OS X CI environment suggests using the following to keep packages up-to-date:
It appears the build is stopped because grep exits with a non 0 code when doesn't exist. This appears to stop the build.
Build log: