homebrew-cask

https://github.com/phinze/homebrew-cask

Ruby

🍻 A CLI workflow for the administration of macOS applications distributed as binaries

Hbc::Utils.rmdir_if_possible

originally from Homebrew
children.length == 0 is slow to enumerate the whole directory just
to see if it is empty

Source | Google | Stack overflow

Edit

git clone [email protected]:phinze/homebrew-cask.git

cd homebrew-cask

open lib/hbc/utils.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Hbc--Utils-rmdir_if_possible-for-pr


# Commit to git

git add lib/hbc/utils.rbgit commit -m "better docs for Hbc::Utils.rmdir_if_possible"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Hbc--Utils-rmdir_if_possible-for-pr

hub pull-request


# Celebrate!