(a) If the offense charged in an indictment is a misdemeanor, the defendant must be discharged by the sheriff, or his deputy, on giving sufficient bail; but the amount of bail must in no case be less than $50.00.
(b) If an indictment charges a misdemeanor and the defendant is committed to jail for want of bail, the sheriff may, at any time, discharge him on his giving bail in the amount required.