Conversation
|
Is there a way to run the |
b65fb3f to
0c184e5
Compare
There was a problem hiding this comment.
Why are we calling /bin/rmdir instead of using FileUtils.rmdir?
There was a problem hiding this comment.
It's because we're calling it with sudo.
There was a problem hiding this comment.
It's because we're calling it with
sudo.
I did wonder about this in the past… Is there no way of doing sudo with the native Ruby methods?
There was a problem hiding this comment.
Also, do we still need print_stderr: false here, since we now have the unless clause prior?
|
I think there needs to be a separate function for the recursion, otherwise ohai "Removing directories if empty:"will be called multiple times. |
|
Ok, pretty sure I've got it now @reitermarkus 👍
I still would like to know this… |
a144a1c to
0a49d73
Compare
|
|
Instead of |
7984c73 to
c992f85
Compare
8d04e5e to
f97a61e
Compare
|
Leaving a note that we’ll need to update the documentation as well. |
@vitorgalvao Do you mean in this PR? |
No, in the cask repo. |
|
Thanks, @danielbayley! |
brew stylewith your changes locally?brew testswith your changes locally?Following on from Homebrew/homebrew-cask#67806, and Homebrew/homebrew-cask#73867 (comment) …