[ bla bla bla ] é equivalente a test bla bla bla .
De man test
STRING1 = STRING2
the strings are equal
STRING1 != STRING2
the strings are not equal
INTEGER1 -eq INTEGER2
INTEGER1 is equal to INTEGER2
Portanto, você precisa de = não -eq .