Skip to content

Instantly share code, notes, and snippets.

@aaditkamat
Created December 2, 2024 17:26
Show Gist options
  • Save aaditkamat/3f1691f28bd94c44712aad3cf06e95a5 to your computer and use it in GitHub Desktop.
Save aaditkamat/3f1691f28bd94c44712aad3cf06e95a5 to your computer and use it in GitHub Desktop.
Check if newly created Homebrew cask meets the requirements
execute_checks() {
local cask=$1
brew audit --cask --online "$cask"
brew style --fix "$cask"
brew audit --cask --new "$cask"
HOMEBREW_NO_INSTALL_FROM_API=1 brew install --cask "$cask"
brew uninstall --cask "$cask"
}
read -p "Enter the cask name: " cask
execute_checks "$cask"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment