if ! $force; then
yesterday=$(( $(date +%s) - 60*60*24 ))
+ fetch_mtime=$(stat -c %Y FETCH_HEAD)
+ if [[ ! $fetch_mtime ]]; then
+ err failed to get output from stat -c %Y FETCH_HEAD
+ exit 1
+ fi
# no need to check for updates on go more than once a day
- if (( $(stat -c %Y FETCH_HEAD) > yesterday )); then
+ if (( fetch_mtime > yesterday )); then
up=false
fi