mirror of
https://github.com/zaphar/runwhen.git
synced 2025-07-22 20:39:49 -04:00
Ergonomic output. print the command that is running.
This is so that if the command to execute doesn't have output you will at least see that it tried to execute.
This commit is contained in:
parent
805d547f2d
commit
3991f03161
@ -58,6 +58,7 @@ fn spawn_runner_thread(lock: Arc<Mutex<bool>>, cmd: String, poll: Duration) {
|
||||
// next loop iteration unless we recieved more events.
|
||||
*signal = false;
|
||||
// Run our command!
|
||||
println!("exec: {}", cmd);
|
||||
if let Err(err) = run_cmd(&cmd) {
|
||||
println!("{:?}", err)
|
||||
}
|
||||
@ -100,7 +101,6 @@ fn wait_for_fs_events(lock: Arc<Mutex<bool>>,
|
||||
}
|
||||
}
|
||||
WatchEventType::Changed => {
|
||||
let mut signal = lock.lock().unwrap();
|
||||
match lock.lock() {
|
||||
Ok(mut signal) => *signal = true,
|
||||
Err(err) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user