From feded9e3d4db9bb91aef3721502685c7214e6b23 Mon Sep 17 00:00:00 2001 From: Phil Crockett Date: Sun, 16 Feb 2025 10:24:13 +0100 Subject: [PATCH] fix(export_browser_history): fix sqlite quote syntax error --- bin/export_browser_history.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/export_browser_history.sh b/bin/export_browser_history.sh index 4a0124d8..4560b328 100755 --- a/bin/export_browser_history.sh +++ b/bin/export_browser_history.sh @@ -44,7 +44,7 @@ export_firefox() { cp "$default" "$OUTPUT_DIR/firefox_history.db.tmp" fi - sqlite3 "$OUTPUT_DIR/firefox_history.db.tmp" "SELECT \"[\" || group_concat(json_object('timestamp', last_visit_date, 'description', title, 'href', url)) || \"]\" FROM moz_places;" > "$OUTPUT_DIR/firefox_history.json" + sqlite3 "$OUTPUT_DIR/firefox_history.db.tmp" "SELECT '[' || group_concat(json_object('timestamp', last_visit_date, 'description', title, 'href', url)) || ']' FROM moz_places;" > "$OUTPUT_DIR/firefox_history.json" sqlite3 "$OUTPUT_DIR/firefox_history.db.tmp" " with recursive tags AS (