Is it possible to determine whether cask is being upgraded? #4996
Unanswered
Kentzo
asked this question in
Writing Formulae/Casks
Replies: 1 comment 2 replies
-
There aren't any environment variables specifically for this purpose. You can check for some of https://docs.brew.sh/Manpage#environment, but no guarantees that all will always be set. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Output of
brew config
Output of
brew doctor
Description of issue
The Wireshark cask adds a group during installation but deletes this group during uninstallation. Since Homebrew simply uninstall/install during the upgrade, any modifications to the group (such as additional users) get lost.
To avoid this I'd like to let the scripts know via an environment variable that they are run as part of an upgrade, so the group configuration can be preserved.
Is this currently possible?
Beta Was this translation helpful? Give feedback.
All reactions