Bonjour
j'ai crée un script bash mais j'ai cette erreur
bashall.sh: ligne123: Erreur de syntaxe près du symbole inattendu « elif »
bashall.sh: ligne123: `elif [[ $PANEL = 'mineweb' && $OS = 'Centos 7' ]]; then'
Voici mon code
if [ $PANEL = 'pterodactyl' && $OS = 'Centos 7'] then
echo "Pterodactyl + Centos 7"
elif [[ $PANEL = 'mineweb' && $OS = 'Centos 7' ]]; then
echo "MineWeb + Centos 7"
elif [[ $PANEL = 'pufferpanel' && $OS = 'Centos 7' ]]; then
echo "Pufferpanel + Centos 7"
elif [[ $PANEL = 'azuriom' && $OS = 'Centos 7' ]]; then
echo "Azuriom + Centos 7 "
else
echo "Erreur veuillez réessayer"
fi
Les deux variable marche parfaitement
Pourquoi cette erreur?