From 5316089e61dcb60064ff5f058708e6d2f82d013e Mon Sep 17 00:00:00 2001 From: Mathieu David Date: Wed, 2 Mar 2016 19:38:39 +0100 Subject: [PATCH] Modify wording of confirmation request before creation of .gitignore --- src/bin/mdbook.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/bin/mdbook.rs b/src/bin/mdbook.rs index 357a0efb..8aafc0f6 100644 --- a/src/bin/mdbook.rs +++ b/src/bin/mdbook.rs @@ -119,16 +119,12 @@ fn init(args: &ArgMatches) -> Result<(), Box> { let is_dest_inside_root = book.get_dest().starts_with(book.get_root()); if !args.is_present("force") && is_dest_inside_root { - let gitignore = book.get_dest().join(".gitignore"); - println!("\nCreating default .gitignore at {:?}", gitignore); - print!("\nAre you sure you want to continue? (y/n) "); + println!("\nDo you want a .gitignore to be created? (y/n)"); if confirm() { book.create_gitignore(); println!("\n.gitignore created."); - } else { - println!("\nSkipping...\n"); - } + } } println!("\nAll done, no errors...");