added debug to to_svg.sh
This commit is contained in:
parent
ca99dcde12
commit
30fbd9862e
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user