fix: correct awww subcommand to img, support bare path arg, add --version
This commit is contained in:
parent
b064e86f2f
commit
5c9efcf316
2 changed files with 12 additions and 8 deletions
|
|
@ -5,13 +5,13 @@ use anyhow::{Context, Result, bail};
|
|||
|
||||
pub fn apply(path: &Path) -> Result<()> {
|
||||
let status = Command::new("awww")
|
||||
.arg("set")
|
||||
.arg("img")
|
||||
.arg(path)
|
||||
.status()
|
||||
.context("failed to run awww — is awww-daemon running?")?;
|
||||
|
||||
if !status.success() {
|
||||
bail!("awww set exited with {}", status);
|
||||
bail!("awww img exited with {}", status);
|
||||
}
|
||||
Ok(())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue