-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
don't reinstall already installed casks #233
Conversation
Given there's not upgrade command, this is actually a non-feature. |
Not really. If there is a new version of the formula, installed? will return false (because it checks if the directory for the current version exists), and thus install will continue as normal. |
True. Mmm, I don't remember how exactly |
I am 👍 on this idea, but I think @passcod may be right that this kills an upgrade path for Casks that use the Maybe this could be acceptable if we added a We'd also need some tests around the behavior before we could pull it in. Lemme know if this makes sense - I think with some tests and an override option we'd be cool to pull this in. |
In the meantime I use this workaround: brew tap phinze/homebrew-cask
brew install brew-cask
function installcask() {
if brew cask info "${@}" | grep "Not installed" > /dev/null; then
brew cask install "${@}"
else
echo "${@} is already installed."
fi
}
installcask foo
installcask bar
# etc. |
Maybe we could have a check to see if the cask is using |
Hey this is all done in 17026b6 - |
No description provided.