syntax error near unexpected token 'fi' [closed]

1

I'm new and I'm having problems with the script below:

echo "Enter an A, B or C"
read letter

if [[ $letter == "A" || $letter == "a" ]];
then
    echo  "this is A"
elif
    [[ $input == "B" || $input == "b" ];
then
    echo "this is B"
elif
   [ $input == "C" || $input == "c" ];
    echo "this is C"
set -x
fi
  

error: syntax error near unexpected token 'fi'

    
asked by anonymous 09.12.2017 / 05:32

0 answers