added more debug to to_svg.sh

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

View File

@ -4,3 +4,4 @@ echo ::debug::'$2:' "$2"
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"
echo ::debug::"svg: $(cat $1.svg)"