summaryrefslogtreecommitdiffstats
path: root/src/recipe.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/recipe.rs')
-rw-r--r--src/recipe.rs8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/recipe.rs b/src/recipe.rs
index 6f039273..7acd1cea 100644
--- a/src/recipe.rs
+++ b/src/recipe.rs
@@ -195,13 +195,9 @@ impl<'src, D> Recipe<'src, D> {
let mut command = evaluated.as_str();
- if quiet_command {
- command = &command[1..];
- }
+ let sigils = usize::from(infallible_command) + usize::from(quiet_command);
- if infallible_command {
- command = &command[1..];
- }
+ command = &command[sigils..];
if command.is_empty() {
continue;