Bonjour,
J'ai l'erreur :
avec le script shell suivant :Citation:
script.sh: 7: Syntax error : end of file unexpected (expecting "fi")
Pourquoi ?Code:
1
2
3
4
5
6
7 #!/bin/bash echo "hello" if [ 1 ] then echo "vrai" else echo "faux" fi echo "hello 2"
Merci d'avance ! ;)
NB : le but étant de test un variable initialisée avant le IF