dotfiles/symlinks/bin/print-last-brew-update

10 lines
259 B
Plaintext
Raw Normal View History

2021-01-07 08:09:41 +00:00
#!/bin/bash
if [ ! -f $MY_CONFIG_CACHE_DIR/brew-upgrade-date ]; then
echo $( date +%s ) > $MY_CONFIG_CACHE_DIR/brew-upgrade-date
fi
LAST_BREW_UPGRADE=$( cat $MY_CONFIG_CACHE_DIR/brew-upgrade-date )
print-system-upgrade-date $LAST_BREW_UPGRADE mac-update