-- Leo's gemini proxy

-- Connecting to git.thebackupbox.net:1965...

-- Connected

-- Sending request

-- Meta line: 20 text/gemini

repo: fmrl-client
action: commit
revision:
path_from:
revision_from: ac2e04c50c7c87f94a3ab9fa4bfcf9a8c85a95a9:
path_to:
revision_to:

git.thebackupbox.net

fmrl-client

git://git.thebackupbox.net/fmrl-client

commit ac2e04c50c7c87f94a3ab9fa4bfcf9a8c85a95a9
Author: epoch <epoch@thebackupbox.net>
Date:   Sun Dec 24 16:38:24 2023 -0600

    fmrl-parse-status will also now download a single status if the host cache file is missing.

diff --git a/fmrl-parse-status b/fmrl-parse-status

index 9e44bb9906b3f79c56d30f95788276c8e3ab52dc..

index ..d8fee0637d3887167284942ee501e2529c47e418 100755

--- a/fmrl-parse-status
+++ b/fmrl-parse-status
@@ -10,8 +10,10 @@ host_cache_file=~/.cache/fmrl/@"${host}"
 u_last_checked="$(cat "${host_cache_file}.last_checked")"

 if [ ! -e "${host_cache_file}" ];then
-  printf "host cache file is missing. need to grab that first.\n" 2>&1
-  exit 1
+  printf "host cache file is missing. grabbing it for just this user.\n" >2
+  ## if we are missing the host cache file, that means we're likely being ran
+  ## stand-alone, so let's fall back to calling just the one user we have.
+  fmrl-get-contact-list <<< "$1"
 fi

 u_code="$(jq -r '.[] | select(.username == "'"${user}"'").code' < "${host_cache_file}")"

-----END OF PAGE-----

-- Response ended

-- Page fetched on Sun Jun 2 14:28:34 2024