'Generic Commit'
Some checks failed
dropshell-build / build (push) Has been cancelled

This commit is contained in:
Your Name
2025-05-31 22:02:26 +12:00
parent 3f27cbf155
commit 4b7ec3cacf
13 changed files with 96 additions and 41 deletions

10
sos/build.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
set -euo pipefail
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
if [ ! -f "${SCRIPT_DIR}/sos" ]; then
echo "Error: sos not found in ${SCRIPT_DIR}"
exit 1
fi

8
sos/publish.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
set -euo pipefail
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
# run sos to upload sos
"${SCRIPT_DIR}/sos" upload "getbin.xyz" "sos:latest" "${SCRIPT_DIR}/sos"

View File

@ -83,7 +83,7 @@ METADATA_JSON=$(cat <<EOF
}
EOF
)
if [ ! -z "$SOS_WRITE_TOKEN" ]; then
if [ -n "${SOS_WRITE_TOKEN:-}" ]; then
WRITE_TOKEN="$SOS_WRITE_TOKEN"
else
TOKENPATH="$HOME/.config/sos/write_token.txt"

7
sos/test.sh Executable file
View File

@ -0,0 +1,7 @@
#!/bin/bash
set -euo pipefail
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
"${SCRIPT_DIR}/sos" upload "getbin.xyz" "sos:test" "${SCRIPT_DIR}/sos"