diff --git a/to_svg.sh b/to_svg.sh index 787b3f4..953b38e 100755 --- a/to_svg.sh +++ b/to_svg.sh @@ -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"