#!/bin/bash # Performs system upgrade using topgrade # Then writes the time of last update into dest dest=$HOME/.config/last-system-upgrade topgrade --no-retry --verbose --yes echo $(date "+%s") >> $dest