Article 5GHFS Bash else syntax error?

Bash else syntax error?

by
sick12301
from LinuxQuestions.org on (#5GHFS)
Hello,
I am trying to make a password script in bash.
However else throws a syntax error??

Code:#!/bin/bash
read -p "Password for user 'sick12301': " -n 1 -r
if [[ $REPLY =~ ^[meisthebest]$ ]]
else logout
then
echo "\nwelcome"
filatest?d=yIl2AUoC8zA latest?i=C1HmuHRXWdw:xdSqJyKfVA0:F7zBnMy latest?i=C1HmuHRXWdw:xdSqJyKfVA0:V_sGLiP latest?d=qj6IDK7rITs latest?i=C1HmuHRXWdw:xdSqJyKfVA0:gIN9vFwC1HmuHRXWdw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments