We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e93577c commit 719b21bCopy full SHA for 719b21b
src/toolchains.rs
@@ -238,8 +238,19 @@ impl Toolchain {
238
.join(&format!("target-{}", self.rustup_name())),
239
);
240
}
241
+ let mut script = cfg.args.script.clone();
242
+ if let Some(path) = &script {
243
+ if !path.is_absolute() && !path.starts_with("./") && !path.starts_with(".\\") {
244
+ if let Ok(mut dir) = std::env::current_dir() {
245
+ dir.push(path);
246
+ if dir.exists() {
247
+ script = Some(dir)
248
+ }
249
250
251
252
- let mut cmd = match (cfg.args.script.as_ref(), cfg.args.timeout) {
253
+ let mut cmd = match (script, cfg.args.timeout) {
254
(Some(script), None) => {
255
let mut cmd = Command::new(script);
256
cmd.env("RUSTUP_TOOLCHAIN", self.rustup_name());
0 commit comments