If money be deposited, as provided in Section 15-1-250, bail may be given and justified upon notice, as prescribed in Section 15-17-260, at any time before judgment. Thereupon the judge before whom the justification is had shall direct in the order of allowance that the money deposited be refunded by the sheriff or constable to the defendant, and it shall be refunded accordingly.
S.C. Code § 15-17-240