-
-
Save ar1g/7d613bce5aa751c5d19f to your computer and use it in GitHub Desktop.
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
| #!/bin/zsh -f | |
| NAME="$0:t:r" | |
| export PATH=/usr/local/bin:/usr/bin:/usr/sbin:/sbin:/bin | |
| (brew update && \ | |
| brew upgrade && \ | |
| brew doctor) 2>&1 |\ | |
| tee -a "$HOME/Library/Logs/$NAME.log" | |
| echo "Done at: `date +%Y-%m-%d.%H:%M:%S`" >> "$HOME/Library/Logs/$NAME.log" | |
| exit 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment