|
@@ -55,7 +55,10 @@ int main(int argc, char* argv[]) {
|
|
}
|
|
}
|
|
//Parse les commandes
|
|
//Parse les commandes
|
|
a = parse_all_command(&ct);
|
|
a = parse_all_command(&ct);
|
|
- printf("Result : %d\n\n", a);
|
|
|
|
|
|
+ if(a == SHELL_FAIL){
|
|
|
|
+ serror("Erreur lors du parse des commandes");
|
|
|
|
+ exit(EXIT_FAILURE);
|
|
|
|
+ }
|
|
//Affiche resultat
|
|
//Affiche resultat
|
|
for (int i = 0; i < ct.length; i++) {
|
|
for (int i = 0; i < ct.length; i++) {
|
|
Command* c = ct.cmd[i];
|
|
Command* c = ct.cmd[i];
|