mirror of
https://github.com/urbit/vere.git
synced 2024-10-05 15:49:00 +03:00
98cbc349cf
Co-authored-by: Peter McEvoy <git@mcevoypeter.com>
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 '"'
|