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