Browse Source

Replace hard-coded directory slash in serve output (#457)

* Replace hard-coded directory slash in serve output
index-subcmd
Vladislav Supalov Vincent Prouillet 6 years ago
parent
commit
ca982a268f
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/cmd/serve.rs

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

@@ -24,7 +24,7 @@
use std::env; use std::env;
use std::fs::{remove_dir_all, File}; use std::fs::{remove_dir_all, File};
use std::io::{self, Read}; use std::io::{self, Read};
use std::path::{Path, PathBuf};
use std::path::{Path, PathBuf, MAIN_SEPARATOR};
use std::sync::mpsc::channel; use std::sync::mpsc::channel;
use std::time::{Instant, Duration}; use std::time::{Instant, Duration};
use std::thread; use std::thread;
@@ -229,7 +229,7 @@ pub fn serve(interface: &str, port: &str, output_dir: &str, base_url: &str, conf
watchers.push("sass"); watchers.push("sass");
} }


println!("Listening for changes in {}/{{{}}}", pwd.display(), watchers.join(", "));
println!("Listening for changes in {}{}{{{}}}", pwd.display(), MAIN_SEPARATOR, watchers.join(", "));


println!("Press Ctrl+C to stop\n"); println!("Press Ctrl+C to stop\n");
// Delete the output folder on ctrl+C // Delete the output folder on ctrl+C


Loading…
Cancel
Save