Upon complying with the sentence, the accused shall be discharged; but on neglecting so to do, he or she shall be committed to the adult correctional institutions, there to remain during the term of which he or she was sentenced to give recognizance, and until the costs are paid, and also all the costs of his or her commitment, or until he or she shall enter into the recognizance required by the sentence before some judge of the district court or justice of the peace authorized to take bail in the county, and pay the required costs.
R.I. Gen. Laws § 12-4-4