Created
December 2, 2024 17:26
-
-
Save aaditkamat/3f1691f28bd94c44712aad3cf06e95a5 to your computer and use it in GitHub Desktop.
Check if newly created Homebrew cask meets the requirements
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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