forked from DGNum/colmena
host/ssh: Fix extension matching for .drv
Oopsie
This commit is contained in:
parent
8b06bb108e
commit
a8e6b999cf
1 changed files with 2 additions and 1 deletions
|
@ -1,5 +1,6 @@
|
|||
use std::collections::HashMap;
|
||||
use std::convert::TryInto;
|
||||
use std::ffi::OsStr;
|
||||
use std::path::PathBuf;
|
||||
use std::process::Stdio;
|
||||
use std::time::Duration;
|
||||
|
@ -275,7 +276,7 @@ impl Ssh {
|
|||
command.arg("--substitute-on-destination");
|
||||
}
|
||||
|
||||
if path.ends_with(".drv") {
|
||||
if let Some("drv") = path.extension().and_then(OsStr::to_str) {
|
||||
command.arg("--derivation");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue