diff options
| author | a-kenji <aks.kenji@protonmail.com> | 2021-05-10 17:12:02 +0200 |
|---|---|---|
| committer | a-kenji <aks.kenji@protonmail.com> | 2021-05-10 17:14:00 +0200 |
| commit | 0abb165aec8823aea8220fe13fd3079b3a0edada (patch) | |
| tree | 99ab2db4081974691ccef62d4a08fa9c55b39c53 /src/main.rs | |
| parent | improve bug report template (#466) (diff) | |
| download | sl0ppij-0abb165aec8823aea8220fe13fd3079b3a0edada.tar.gz sl0ppij-0abb165aec8823aea8220fe13fd3079b3a0edada.tar.xz sl0ppij-0abb165aec8823aea8220fe13fd3079b3a0edada.zip | |
Fix exit code on `dump-default-config`
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 12998d4d..ffc2373e 100644 --- a/src/main.rs +++ b/src/main.rs @@ -45,7 +45,7 @@ pub fn main() { CliArgs::clap().gen_completions_to("zellij", shell, &mut out); } else if let Some(crate::cli::ConfigCli::Setup { .. }) = opts.option { setup::dump_default_config().expect("Failed to print to stdout"); - std::process::exit(1); + std::process::exit(0); } else { atomic_create_dir(&*ZELLIJ_TMP_DIR).unwrap(); atomic_create_dir(&*ZELLIJ_TMP_LOG_DIR).unwrap(); |
