summaryrefslogtreecommitdiff
path: root/scripts/entrypoint.sh
diff options
context:
space:
mode:
authorBobby <[email protected]>2026-03-11 00:07:58 +0530
committerBobby <[email protected]>2026-03-11 00:07:58 +0530
commitd3a543545a16a4700f515c398f645251da30f09f (patch)
tree751e9e534d510ba5ffe554ebcb9d2119b69228a7 /scripts/entrypoint.sh
parent8d368445ef63a365547a170e13c703012240deb2 (diff)
downloadpagoda-d3a543545a16a4700f515c398f645251da30f09f.tar.xz
pagoda-d3a543545a16a4700f515c398f645251da30f09f.zip
fix: correct table retrieval command in entrypoint script
Diffstat (limited to 'scripts/entrypoint.sh')
-rw-r--r--scripts/entrypoint.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/entrypoint.sh b/scripts/entrypoint.sh
index 2196761..6fdb427 100644
--- a/scripts/entrypoint.sh
+++ b/scripts/entrypoint.sh
@@ -13,7 +13,7 @@ if [ "$SEED" = "true" ]; then
-H "Authorization: Bearer ${TURSO_TOKEN}" \
-H "Content-Type: application/json" \
-d '{"requests":[{"type":"execute","stmt":{"sql":"SELECT name FROM sqlite_master WHERE type='\''table'\'' AND name NOT LIKE '\''sqlite_%'\'' AND name NOT LIKE '\''_litestream%'\''"}},{"type":"close"}]}' \
- | sed 's/{"type":"text","value":"/\n/g' | sed -n 's/"}.*/\1/p' | sed 's/}.*//')
+ | grep -o '"type":"text","value":"[^"]*"' | sed 's/.*"value":"//;s/"//')
if [ -n "$TABLES" ]; then
STMTS=""
for TABLE in $TABLES; do