curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg \
&& sudo chmod go+r /usr/share/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
- && sudo apt update \
- && sudo apt install gh -y
+ && sudo apt-get update \
+ && sudo apt-get install gh -y
### end gh ####
if [[ -e $f ]]; then
now=$EPOCHSECONDS
fsec=$(stat -c%Y $f)
- # the / 60 makes it 0-59 seconds less strict, +1 to help make sure we
+ # the / 60 makes it 0-59 seconds less strict, +2 to help make sure we
# dont have any false positives.
- fmin=$(( (fsec - now + 1 ) / 60 ))
+ fmin=$(( (fsec - now + 2 ) / 60 ))
fminplus=$(( fmin + 60*24 ))
# Filesystem files get copied, so find any newer than the last run.
# The rest are hueristics: