foreman repo task: fix typo on conditional

Change-Id: I9d04f9d8f32cfd772f112faa30ebee207f5261e8