I'm trying to run this-
#!/bin/bash
echo "Who are you?"
read NAMES
{
if [ "$NAMES" == "Mallory" ] ;
echo "Hello, me!"
else [ "$NAMES" == "Palmer" ] ;
echo "Hey, baby! I love you!"
else echo "Gtfo here..."
}
But every time I do, this happens...
mallory@whitecelica:~/stuff/learning/internets$ ./wru
Who are you?
Mallory
./wru: line 9: syntax error near unexpected token `else'
./wru: line 9: `else [ "$NAMES" == "Palmer" ] ; '
What am I doing wrong?