瀏覽代碼

fix(export_browser_history): fix sqlite quote syntax error

Phil Crockett 10 月之前
父節點
當前提交
feded9e3d4
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      bin/export_browser_history.sh

+ 1 - 1
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 (