Simplify cron a tiny bit
This commit is contained in:
parent
eb6b05c9db
commit
51b47b5dd4
1 changed files with 2 additions and 2 deletions
|
|
@ -25,8 +25,8 @@ impl<C: AsRef<str>, U: AsRef<str>, R: CommandRunner> Symbol for Cron<'_, C, U, R
|
|||
fn target_reached(&self) -> Result<bool, Box<dyn Error>> {
|
||||
let tab = self
|
||||
.command_runner
|
||||
.get_output("crontab", args!["-l", "-u", self.user.as_ref(),])?;
|
||||
Ok(tab == self.content.as_ref().bytes().collect::<Vec<u8>>())
|
||||
.get_output("crontab", args!["-l", "-u", self.user.as_ref()])?;
|
||||
Ok(tab == self.content.as_ref().as_bytes())
|
||||
}
|
||||
|
||||
fn execute(&self) -> Result<(), Box<dyn Error>> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue