If, from the examination before the judge or District Court commissioner, it appears that the person held is the person charged with having committed the crime alleged and, except in cases arising under § 9-106 of this title, that the person has fled from justice, the judge or District Court commissioner must, by a warrant reciting the accusation, commit the person to the local correctional facility for a term specified in the warrant but not exceeding 30 days, as will enable the arrest of the accused to be made under a warrant of the Governor on a requisition of the executive authority of the state having jurisdiction of the crime, unless the person gives bail as provided in § 9-116 of this title or until the person is legally discharged.
Md. Code, CP § 9-115