Scripts and snippets
osx-update(1)
osx-update(1)
- Name
- osx-update - Update homebrew and show an alert if any updates are available.
- Synopsis
-
-
osx-update
-
15 * * * * /usr/local/bin/osx-update
- Description
-
#!/bin/bash
BREW=$(/usr/bin/which brew)
$BREW update > /dev/null
UPDATES=$($BREW outdated)
if [ "${UPDATES}" != "" ] ; then
/usr/bin/osascript -e 'display notification "Software updates are available." with title "Software updates"'
fi
- Copyright
-
osx-update is made available under the MIT License. See
MIT LICENSE for details.
2015-09-16 00:00:00 +0000
osx-update(1)
osx-update(1)