Skip to content
Snippets Groups Projects
Commit d6e9af90 authored by Miro Prasil's avatar Miro Prasil
Browse files

Remove the unnecessary check for sqlite

The binary we use is called `sqlite3` so no need to check for other
name variants as we won't use those anyways.
parent acdd4293
No related branches found
No related tags found
No related merge requests found
......@@ -37,11 +37,7 @@ pub fn routes() -> Vec<Route> {
}
lazy_static! {
static ref CAN_BACKUP: bool = cfg!(feature = "sqlite") &&
(
Command::new("sqlite").arg("-version").status().is_ok() ||
Command::new("sqlite3").arg("-version").status().is_ok()
);
static ref CAN_BACKUP: bool = cfg!(feature = "sqlite") && Command::new("sqlite3").arg("-version").status().is_ok();
}
#[get("/")]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment