From fa2290331869e4691b3b49170c41b9bdd53e3358 Mon Sep 17 00:00:00 2001 From: Moncef STITI <moncef.stiti@etu.u-pec.fr> Date: Sun, 16 Mar 2025 22:13:38 +0100 Subject: [PATCH] Correction de bug --- src/fr/monlouyan/bakefile/CommandExecutor.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/fr/monlouyan/bakefile/CommandExecutor.java b/src/fr/monlouyan/bakefile/CommandExecutor.java index 736de20..feec7c5 100644 --- a/src/fr/monlouyan/bakefile/CommandExecutor.java +++ b/src/fr/monlouyan/bakefile/CommandExecutor.java @@ -101,14 +101,16 @@ public class CommandExecutor { if (ignoreErrors && displayLine.trim().startsWith("-")) { displayLine = displayLine.replaceFirst("\\s*-\\s*", " ").trim(); } + + displayLine = BakefileParser.expandVariables(displayLine); System.out.println(displayLine); isFirstLine = false; } else { // Pour les lignes suivantes, également supprimer l'indentation if (line.startsWith("\t")) { - System.out.println(line.substring(1)); + System.out.println(BakefileParser.expandVariables(line.substring(1))); } else { - System.out.println(line); + System.out.println(BakefileParser.expandVariables(line)); } } }