![if 문을 올바르게 실행했습니까?](https://linux55.com/image/208830/if%20%EB%AC%B8%EC%9D%84%20%EC%98%AC%EB%B0%94%EB%A5%B4%EA%B2%8C%20%EC%8B%A4%ED%96%89%ED%96%88%EC%8A%B5%EB%8B%88%EA%B9%8C%3F.png)
아래는 내 스크립트의 일부입니다. if 문을 올바르게 수행하고 있는지 잘 모르겠습니다. 특히 elfif 이후의 if - 이것을 할 수 있나요?
read -p 'Enter username: ' user
if [ -z "$1" ]; then
echo "You must supply a user name argument"
exit 1
elif grep "${user}" /etc/passwd >/dev/null 2>&1 then
read -p 'Are you sure you want to delete user orange? [y/n] ' response
if [[ ! $response =~ ^([yY][eE][sS]|[yY])$ ]] then
del-user
else
echo "User orange has not been deleted."
fi
else
add-user
fi
편집: 내 구문이 올바른지 알아내려고 노력 중입니다.