From cf8fd8dd367e435bdf255c195c92caf751f58321 Mon Sep 17 00:00:00 2001 From: Josh Date: Sat, 14 Dec 2024 00:28:40 -0600 Subject: [PATCH] removecommand check --- src/commands.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/commands.rs b/src/commands.rs index 1d63784..7f6ada4 100644 --- a/src/commands.rs +++ b/src/commands.rs @@ -44,17 +44,6 @@ impl Add { return ExitCode::DuplicateCommand; } - let command = &self - .original - .split_whitespace() - .next() - .expect("command should be provided"); - - if Command::new(command).output().is_err() { - eprintln!("Command not found: {}", self.original); - return ExitCode::CommandFailed; - } - let bin_path = match &self.bin_path { Some(p) if p == config.settings().bin_path() => None, Some(p) => Some(p.clone()),