Created
May 17, 2023 22:44
-
-
Save stand-sure/264eec07c90f99dde499ded245e45d9f to your computer and use it in GitHub Desktop.
upgrades brew packages and restarts the services that were updated
This file contains 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
#! /usr/bin/env bash | |
brew upgrade | tee /tmp/brew.log | |
cat /tmp/brew.log | grep "brew services restart" | xargs -n 4 -L 1 -I {} sh -c "{}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment