Bonjour , lorsque je fais mon script , j'ai comme message d'erreur après d'avoir entrer mon choix
"./exercice4: 13: ./exercice4: Syntax error: "(" unexpected (expecting "fi")"

Voila mon script
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh
echo "Entrer le premier nombre"
read val1 
echo "Entrer le deuxième nombre"
read val2
 
echo "Choisissez une opération"
echo "1-Addition" 
echo "2-Multiplication" 
echo "3-Division" 
read choix             
if [ "$choix" -eq 1 ]
        then y=(($val1+$val2)) echo "$y"
fi
 
if [ "$choix" -eq 2 ]
        then y=(($val1 * $val2)) echo "$y"
fi
 
if [ "$choix" -eq 3 ]
        then y=(($val1/$val2))
             z=0
             if [ $val2 -le $z ]
                then echo "Opération impossible"
                else echo "$y"
             fi
fi