Browse Source

Do not use serve remove dir result

Closes #752
index-subcmd
Vincent Prouillet 4 years ago
parent
commit
ad6b713759
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      CHANGELOG.md
  2. +1
    -1
      src/cmd/serve.rs

+ 2
- 2
CHANGELOG.md View File

@@ -6,8 +6,8 @@
- Fix sitemaps namespace
- Update livereload
- Add `hard_link_static` config option to hard link things in the static directory instead of copying
- Draft pages are not longer rendered in `zola build`
- Add warning for old style internal links since they would still function
- Pages with draft=true are not longer rendered in `zola build`
- Add warning for old style internal links since they would still function silently
- Add some counts to `zola check`

## 0.8.0 (2019-06-22)


+ 1
- 1
src/cmd/serve.rs View File

@@ -272,7 +272,7 @@ pub fn serve(
println!("Press Ctrl+C to stop\n");
// Delete the output folder on ctrl+C
ctrlc::set_handler(move || {
remove_dir_all(&output_path).expect("Failed to delete output directory");
let _ =remove_dir_all(&output_path);
::std::process::exit(0);
})
.expect("Error setting Ctrl-C handler");


Loading…
Cancel
Save