(1) In every case in which a sentence is modified on appeal, the appellate court shall prepare a fresh warrant in the form prescribed in accordance with the terms of the order passed, and shall send the same direct to the Superintendent of the jail in which the appellant is confined and shall recall and cancel the original warrant of commitment which shall be attached to the record of the original court and returned to it therewith.
(2) When the fresh warrant is returned with an endorsement of execution, the appellate court shall forward it to the court, from the decision of which the appeal was preferred, to be attached to the original record:
Provided that if an appellant has been released on bail pending the hearing of his appeal, the fresh warrant shall not be sent to the Superintendent of the jail until the prisoner has surrendered and it shall be the duty of the appellate court, either directly or through the court by which the order of release on bail was actually issued, to take measures to secure his surrender.