skip errors for now. folders with single quotes not handled properly

This commit is contained in:
Q
2024-10-27 09:31:30 +02:00
parent 98de67a6cd
commit 045f87ed7e

View File

@@ -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 );"