From ca99dcde124a2589e839ddb0cd7af0bfa6ab8ae8 Mon Sep 17 00:00:00 2001 From: Lu Baumann Date: Sun, 15 Oct 2023 17:46:00 +0200 Subject: [PATCH] fixed escapes --- to_svg.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"