title: Nested-If statements in Shell-scripting
body: <p>This is my script:</p>
  
  <pre><code>echo "Name"
  
  read name
  
  if [ "$name" == "abcd" ]; then
  
   echo "Password"
  
   read password
  
   if [ "$password == "pwd" ]; then
  
    echo "Hello"
  
   else
  
    echo "Wrong password"
  
   fi
  
  else
  
   echo "wrong username"
  
  fi
  </code></pre>
  
  <p>And this is the output I get when I run it:</p>
  
  <pre>
  sh hello.sh
  
  Name
  
  abcd
  
  hello.sh: line 14: unexpected EOF while looking for matching `"'
  
  hello.sh: line 16: syntax error: unexpected end of file
  </pre>
  
  <p>Any idea whats wrong here? This could be a very silly one, but i wasted almost an hour on it.</p>