fixed escapes
This commit is contained in:
parent
1dc68a310f
commit
ca99dcde12
@ -1,3 +1,3 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
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")
|
||||||
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