vere/docker/get_urbit_code.sh
Peter McEvoy 98cbc349cf
Achieve feature parity with v1.15 and earlier Docker images (#123)
Co-authored-by: Peter McEvoy <git@mcevoypeter.com>
2023-01-18 12:24:52 -05:00

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 '"'