fixed escapes

This commit is contained in:
Lu Baumann 2023-10-15 17:46:00 +02:00 committed by GitHub
parent 1dc68a310f
commit ca99dcde12
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,3 @@
#!/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"