The sheriff or his deputy shall arrest all persons against whom process for that purpose shall issue from any competent authority commanding such person to be taken into custody or requiring him to give bond, with security. If the party so arrested, being entitled to bail, shall give it or shall give the bond with security required, such person shall be released; and if not, he shall be kept in custody until discharged from confinement according to law.
S.C. Code § 23-15-50