title: bash update script returns true but fails anyway
body: <p>I am working on a "on-boot update" bash script, but opening it in the Konsole returns: </p>
  
  <pre><code>~~~~~~-~~~~~@~~~~~~-~~~~~-~~-~~~~~~~~-~~~:~/Documents$ ./update.sh
  ./update.sh: 3: ./update.sh: [True=True]: not found
  ~~~~~~-~~~~~@~~~~~~-~~~~~-~~-~~~~~~~~-~~~:~/Documents$
  </code></pre>
  
  <p>Here is the code (<a href="http://i.stack.imgur.com/wZZme.png" rel="nofollow">screenshot</a>):</p>
  
  <pre><code>#!/bin.sh
  upd=True
  while [$upd=True]
  do
      echo "Updateing..."
      end=0
      sudo apt-get -yV update
      if [$?=0 -o $end=0]
      then
          end=1
          sudo apt-get -yV upgrade
          if [$?=0 -o $end=1]
          then
              end=2
              sudo apt-get -yV autoremove
              if [$?=0 -o $end=2]
              then
                  end=3
                  sudo apt-get -yV autoclean
                  if [$?=0 -o $end=3]
                  then
                      end=4
                      sudo apt-get -yV dist-upgrade
                      if [$?=0 -o $end=4]
                      then
                          end=5
                          sudo apt -yV update
                          if [$?=0 -o $end=5]
                          then
                              end=6
                              sudo apt full-upgrade
                              if [$?=0 -o $end=6]
                              then
                                  upd=False
                              fi
                          fi
                      fi
                  fi
              fi
          fi
      fi
  done
  exit 0
  </code></pre>