mirror of
https://github.com/urbit/vere.git
synced 2024-09-11 11:55:31 +03:00
9 lines
248 B
Bash
Executable File
9 lines
248 B
Bash
Executable File
#!/bin/bash
|
|
|
|
code=$(curl -s -X POST -H "Content-Type: application/json" \
|
|
-d '{ "source": { "dojo": "+code" }, "sink": { "stdout": null } }' \
|
|
http://127.0.0.1:12321)
|
|
|
|
# Trim newlines and double quotes.
|
|
echo "$code" | sed 's/\\n//' | tr -d '"'
|