aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2021-05-10 17:24:52 +0200
committerGitHub <noreply@github.com>2021-05-10 17:24:52 +0200
commitba4e23b163eb4a4858d9e5c2906f3caba443c994 (patch)
tree2dbf111fd1dcdc62d91c3c2eba0b38fa02b9ba39 /src
parentdocs(changelog): Switch tabs in normal mode #471 (diff)
parentMerge branch 'main' into dump-config-exit (diff)
downloadsl0ppij-ba4e23b163eb4a4858d9e5c2906f3caba443c994.tar.gz
sl0ppij-ba4e23b163eb4a4858d9e5c2906f3caba443c994.tar.xz
sl0ppij-ba4e23b163eb4a4858d9e5c2906f3caba443c994.zip
Merge pull request #480 from a-kenji/dump-config-exit
Fix exit code on `dump-default-config`
Diffstat (limited to 'src')
-rw-r--r--src/main.rs2
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();