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

10 lines
259 B
Bash
Executable File

#!/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