Replace hard-coded directory slash in serve output (#457)
* Replace hard-coded directory slash in serve output
This commit is contained in:
parent
e7efdfa4ca
commit
ca982a268f
|
@ -24,7 +24,7 @@
|
|||
use std::env;
|
||||
use std::fs::{remove_dir_all, File};
|
||||
use std::io::{self, Read};
|
||||
use std::path::{Path, PathBuf};
|
||||
use std::path::{Path, PathBuf, MAIN_SEPARATOR};
|
||||
use std::sync::mpsc::channel;
|
||||
use std::time::{Instant, Duration};
|
||||
use std::thread;
|
||||
|
@ -229,7 +229,7 @@ pub fn serve(interface: &str, port: &str, output_dir: &str, base_url: &str, conf
|
|||
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");
|
||||
// Delete the output folder on ctrl+C
|
||||
|
|
Loading…
Reference in a new issue