minor improvements
authorIan Kelling <ian@iankelling.org>
Tue, 12 Nov 2024 08:17:08 +0000 (03:17 -0500)
committerIan Kelling <ian@iankelling.org>
Tue, 12 Nov 2024 08:17:08 +0000 (03:17 -0500)
distro-end
system-status

index a63fef617f7cad5dd25a423084ae837f607ba58f..a193a67ead5277bef95a7c7032280302fa3e8182 100755 (executable)
@@ -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 ####
 
index 95cf0c05b31062c3ddae40adf322570647d5e99c..90a2ebd46daaeca42bf751650401fa25fc79f87c 100755 (executable)
@@ -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: