The governing body of the county shall feed and provide suitable and sufficient employee supervision for the safekeeping of all persons who have received a sentence to public work detail. It also shall provide all necessary equipment and machinery for performing the work required of inmates, all costs and expenses of which must be paid out of the county general fund in the same manner as other charges against the fund are paid.