spacing in bash if and date in log