You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cat check_weekly_update.sh
#!/bin/bash
## check if the last cygwin update is less than a week back by
## checking if the newest file in /etc/setup is younger than a week
if [ $(( $(stat -c %Z /etc/setup/$(ls -tr /etc/setup | cat | tail -n 1)) + (7*24*60*60) )) -lt $(date +%s) ]; then
echo $0: last update seems to be more than a week past. please update cygwin.
fi
and ~/.bashrc
## running interactively
## be silent if not interactive
if [[ $- == *i* ]]; then
~/check_weekly_update.sh
fi