We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ede2262 commit 21b46bfCopy full SHA for 21b46bf
src/toolchains.rs
@@ -238,11 +238,13 @@ impl Toolchain {
238
.join(&format!("target-{}", self.rustup_name())),
239
);
240
}
241
- let script = cfg
242
- .args
243
- .script
244
- .as_ref()
245
- .map(|script| std::env::current_dir().unwrap().join(script));
+ let script = cfg.args.script.as_ref().map(|script| {
+ if script.exists() {
+ std::env::current_dir().unwrap().join(script)
+ } else {
+ script.to_owned()
246
+ }
247
+ });
248
249
let mut cmd = match (script, cfg.args.timeout) {
250
(Some(script), None) => {
0 commit comments