added debug to to_svg.sh

This commit is contained in:
Lu Baumann 2023-10-15 23:53:33 +02:00 committed by GitHub
parent ca99dcde12
commit 30fbd9862e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
echo ::debug::'$1:' "$1"
echo ::debug::'$2:' "$2"
EXCALIDRAW=$(jq '{"type": .type, "version": .version, "source": .source, "elements": .elements, "appState": {"gridSize": null, "exportWithDarkMode": '"$2"'}}' "$1") EXCALIDRAW=$(jq '{"type": .type, "version": .version, "source": .source, "elements": .elements, "appState": {"gridSize": null, "exportWithDarkMode": '"$2"'}}' "$1")
echo ::debug::'$EXCALIDRAW' "$EXCALIDRAW"
curl localhost:8080/excalidraw/svg --data-raw "$EXCALIDRAW" > "$1.svg" curl localhost:8080/excalidraw/svg --data-raw "$EXCALIDRAW" > "$1.svg"