Browse Source

use correct condition

pull/35/head
zephyr 3 days ago
parent
commit
75a511053d
No known key found for this signature in database GPG Key ID: 84399454809594E3
  1. 4
      src/main.rs

4
src/main.rs

@ -56,7 +56,7 @@ struct Cli {
#[arg(long)]
http_basic: Option<String>,
#[cfg(not(target_os = "windows"))]
#[cfg(unix)]
/// Run process in background
#[arg(short, long, default_value_t = false)]
detached: bool,
@ -64,7 +64,7 @@ struct Cli {
fn main() {
let args = Cli::parse();
#[cfg(not(target_os = "windows"))]
#[cfg(unix)]
{
if args.detached {
let daemonize = daemonize::Daemonize::new();

Loading…
Cancel
Save