这个地方主要是哪里出问题了

linux -bash: [: 缺少 `]
具体就上面哪一行,不造哪里出问题了,缺少啥啊

#!/bin/bash
count=0
read -p "input your name:" name
if [ $name = "yyy"]; then
   while [$count -lt 5]
   do
    read -p "input your passwd:" passwd
    if [ $passswd = "123456"]; then
      echo "hello $name"
      break
    else
      echo "your passwd is not right"
    fi
    declare 0i count=&count+1
    done
else
 echo "sorry,your name is not right"
fi

```

不知道你是哪里导致这个问题,
你截图上一下报错看看,现有信息太少。

img