skip errors for now. folders with single quotes not handled properly
This commit is contained in:
@@ -168,7 +168,7 @@ function qcd_sqlite() {
|
|||||||
local db_dir
|
local db_dir
|
||||||
while read db_dir; do
|
while read db_dir; do
|
||||||
if [[ ! -d "$db_dir" ]]; then
|
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
|
fi
|
||||||
done < <( sqlite3 "$_QCD_DB" "SELECT path FROM history" )
|
done < <( sqlite3 "$_QCD_DB" "SELECT path FROM history" )
|
||||||
sqlite3 -column "$_QCD_DB" "DELETE FROM history WHERE path IN ( SELECT path FROM tmp_notexists );"
|
sqlite3 -column "$_QCD_DB" "DELETE FROM history WHERE path IN ( SELECT path FROM tmp_notexists );"
|
||||||
|
|||||||
Reference in New Issue
Block a user