'Generic Commit'
Some checks failed
dropshell-build / build (push) Failing after 12m53s

This commit is contained in:
Your Name
2025-05-31 21:08:02 +12:00
parent 01907e5fb6
commit 7706986cef
3 changed files with 10 additions and 7 deletions

13
sos/sos
View File

@ -78,12 +78,15 @@ METADATA_JSON=$(cat <<EOF
}
EOF
)
TOKENPATH="$HOME/.config/sos/write_token.txt"
if [ ! -f "$TOKENPATH" ]; then
die "Token file not found: $TOKENPATH. Please create it and put your write token in it."
if [ ! -z "$SOS_WRITE_TOKEN" ]; then
WRITE_TOKEN="$SOS_WRITE_TOKEN"
else
TOKENPATH="$HOME/.config/sos/write_token.txt"
if [ ! -f "$TOKENPATH" ]; then
die "Token file not found in environment variable SOS_WRITE_TOKEN or $TOKENPATH. Please create it and put your write token in it."
fi
WRITE_TOKEN=$(cat "$TOKENPATH")
fi
WRITE_TOKEN=$(cat "$TOKENPATH")
HASH=""