This commit is contained in:
13
sos/sos
13
sos/sos
@ -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=""
|
||||
|
||||
|
Reference in New Issue
Block a user