i am getting an error [: missing `]' in checking the condition of a string after getting the input of a user in BASH
did i miss something?
#!/bin/bash
read -p "Do You want to Proceed The Process? (yes/no) : " input
echo "you choose : '$input'"
while [ "$input" != "no" && "$input" != "yes" ]
do
echo "unknown input '$input' please only input (yes/no) \n"
read -p "Do You want to Proceed The Process? (yes/no) : " \input
done
if [ "$input" == "no" ]
then
echo "ok then bye :)"
exit
elif [ "$input" == "yes" ]
then
echo "nice!, here's the nuclear code : 177013"
# Do not search this code ^ btw
fi
exit