Wait bash loop