This commit is contained in:
10
sos/build.sh
Executable file
10
sos/build.sh
Executable 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
8
sos/publish.sh
Executable 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"
|
2
sos/sos
2
sos/sos
@ -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
7
sos/test.sh
Executable 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"
|
Reference in New Issue
Block a user