diff --git a/src/main.rs b/src/main.rs index 0bf26f5..3c0a423 100644 --- a/src/main.rs +++ b/src/main.rs @@ -199,6 +199,7 @@ fn assert_all_same_device(paths: &[PathBuf]) -> Result<(), String> { s.push_str(&shlex::quote(&path.to_string_lossy())); s.push_str("\n"); } + s.pop(); // remove last newline Err(s) } }