From d25e0e4efacc07248dbd7859d83c9c80de8edf09 Mon Sep 17 00:00:00 2001 From: Ian Kelling Date: Tue, 12 Nov 2024 03:17:08 -0500 Subject: [PATCH] minor improvements --- distro-end | 4 ++-- system-status | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/distro-end b/distro-end index a63fef6..a193a67 100755 --- a/distro-end +++ b/distro-end @@ -2194,8 +2194,8 @@ esac 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 #### diff --git a/system-status b/system-status index 95cf0c0..90a2ebd 100755 --- a/system-status +++ b/system-status @@ -359,9 +359,9 @@ write-status() { 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: -- 2.30.2