So I create a script and it works perfect except at the end when I type in a beverage it executes a line its not suppose to. The Last line is only suppose to come up when I type "no" or "No"...What did I do wrong?
echo -n "Are you thirsty?"
read th
if [ "$th" = "yes" ] || [ "Yes" ]; then
echo "What would you like to drink?"
read th
fi
if [ "$th" = "water" ]; then
echo "Clear crisp and refreshing."
elif [ "$th" = "beer" ]; then
echo "Let me see some ID."
elif [ "$th" = "wine" ]; then
echo "One box or Two?"
else
echo "Coming right up."
fi
if [ "$th" = "no" ] || [ "No" ]; then
echo "Come back when you are thirsty."
fi