Skip to content

Instantly share code, notes, and snippets.

@breiter
Created March 15, 2016 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save breiter/b82b4121c4195462441c to your computer and use it in GitHub Desktop.
Save breiter/b82b4121c4195462441c to your computer and use it in GitHub Desktop.
brew wrapper to set HOMEBREW_CASK_OPTS
#!/bin/sh
# work around brew "feature" where it ignores HOMEBREW_CASK_OPTS when
# run with sudo.
HOMEBREW_CASK_OPTS="--appdir=/Applications" /opt/homebrew/bin/brew $@
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment