From 045f87ed7ec5319100a95ced839e923bf5051239 Mon Sep 17 00:00:00 2001 From: Q Date: Sun, 27 Oct 2024 09:31:30 +0200 Subject: [PATCH] skip errors for now. folders with single quotes not handled properly --- q-tools-functions | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/q-tools-functions b/q-tools-functions index 00f92d0..54c52bd 100644 --- a/q-tools-functions +++ b/q-tools-functions @@ -168,7 +168,7 @@ function qcd_sqlite() { local db_dir while read db_dir; do if [[ ! -d "$db_dir" ]]; then - sqlite3 "$_QCD_DB" "INSERT INTO tmp_notexists (path) VALUES ('$db_dir');" + sqlite3 "$_QCD_DB" "INSERT INTO tmp_notexists (path) VALUES ('$db_dir');" &>/dev/null || true fi done < <( sqlite3 "$_QCD_DB" "SELECT path FROM history" ) sqlite3 -column "$_QCD_DB" "DELETE FROM history WHERE path IN ( SELECT path FROM tmp_notexists );"