mirror of
https://github.com/embassy-rs/embassy.git
synced 2024-11-29 10:12:35 +00:00
13 lines
331 B
Bash
13 lines
331 B
Bash
|
echo Running target=$1 elf=$2
|
||
|
STATUSCODE=$(
|
||
|
curl \
|
||
|
-sS \
|
||
|
--output /dev/stderr \
|
||
|
--write-out "%{http_code}" \
|
||
|
-H "Authorization: Bearer $TELEPROBE_TOKEN" \
|
||
|
https://teleprobe.embassy.dev/targets/$1/run --data-binary @$2
|
||
|
)
|
||
|
echo
|
||
|
echo HTTP Status code: $STATUSCODE
|
||
|
test "$STATUSCODE" -eq 200
|