#!/bin/bash end = false; while [$end==false]; do         out = $(php migrate.php --old-database heinessenmlp --board mlp --phase 1);         echo $out >> migration.log;         if [$(echo $out | grep '[database error]')]; then                         end = true;             fi         sleep 10; done