From b33e8c5aa808eaebffc60cea6b78325476b34386 Mon Sep 17 00:00:00 2001 From: theMackabu <theMackabu@gmail.com> Date: Mon, 16 Oct 2023 23:16:32 -0700 Subject: [PATCH] change remote build check --- crates/maid/client/src/cli/mod.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/crates/maid/client/src/cli/mod.rs b/crates/maid/client/src/cli/mod.rs index 432be7b..65c949a 100644 --- a/crates/maid/client/src/cli/mod.rs +++ b/crates/maid/client/src/cli/mod.rs @@ -62,8 +62,13 @@ pub fn exec(task: &str, args: &Vec<String>, path: &String, silent: bool, is_dep: crashln!("Maid could not find the remote task '{task}'. Does it exist?"); } - if is_remote && values.tasks.get(task).unwrap().remote.as_ref().unwrap().exclusive { - crashln!("Task '{task}' is remote only."); + match values.tasks.get(task).unwrap().remote.as_ref() { + Some(val) => { + if val.exclusive && !is_remote { + crashln!("Task '{task}' is remote only."); + } + } + None => {} } if !is_remote { -- GitLab