From 30fbd9862ef07cbf6096c3e4bbb256fc8f2f51b4 Mon Sep 17 00:00:00 2001 From: Lu Baumann Date: Sun, 15 Oct 2023 23:53:33 +0200 Subject: [PATCH] added debug to to_svg.sh --- to_svg.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/to_svg.sh b/to_svg.sh index 953b38e..af174c7 100755 --- a/to_svg.sh +++ b/to_svg.sh @@ -1,3 +1,6 @@ #!/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") +echo ::debug::'$EXCALIDRAW' "$EXCALIDRAW" curl localhost:8080/excalidraw/svg --data-raw "$EXCALIDRAW" > "$1.svg"