   if useNext
     mongopath = path
     break
-  useNext = path == '--mongopath'
+  useNext = path is '--mongopath'
 mongopath += '/bin/' if mongopath.length
 mongopath += 'mongodb' # mongodb is in path.
 

return console.log '-------------------------------------------------
Commandline utility written in Coffeescript to run all updates, download latest database and install it after you git pushed.
Params:
\t--skipupdates skips npm and bower update
\t--dldb: download the latest database (Over 300 mb!)
\t--resetdb: to reset the database and load dump from tmp. Will need a downloaded database or --dbdownload specified
\t--mongopath <.path/to/mongo>: to specify mongodb folder if not set in PATH.
\t--help: Yo fund this one already.

May need an initial npm install upfront if newly checked out.
' if '--help' in path

dbDump = 'http://23.21.59.137/dump.tar.gz' # Don't change this unless you know what you're doing
dbLocalPath = '../temp'


  installUpdates()

if '--resetdb' in process.argv
  if '--dldb' in process.argv
    downloadDB().done ->
        resetDB().done ->
          cleanUpTmp() if '--cleanup' in process.argv
  else
    resetDB().done ->
      cleanUpTmp() if '--cleanup' in process.argv
else if '--dldb' in process.argv
  downloadDB()

# TODO: Could advice to start SCOCODE.bat et al. here

