Civilian Busted for Trying to Break Into Prison by Scaling Fence: Cops

One man got what he wanted... to get inside the prison, it just wasn't through his own plan.

While some inmates may hatch a plan to get out of jail, authorities say one civilian found himself in trouble with the law after he tried to get in.

Read: Body Cam Captures Distracted Driver Smashing Into Parked Police Car While Playing Pokemon Go

In the early hours of Sunday in California, San Bernardino County Sheriff' Department Sgt. Corey Emon says he spotted Shane McDonald, 28, who was not incarcerated at the time, scaling the perimeter fence of the Central Detention Center.

McDonald got what he wanted and found his way inside the prison, but not through his own plan.

Personnel inside the facility were notified and McDonald was taken into custody. He also had an active warrant for his arrest, according to a press release issued by authorities.

Later, when the police took a look at the surveillance footage, they saw that McDonald had also made his way into the county yard east of the jail, according to the release.

He is currently being held in lieu of $25,000 bail.

Read: From Complaining About Pizza to Being 'Too High,' 7 Ridiculous Reasons People Have Called 911

The San Bernardino County Sherriff’s Department says the investigation is ongoing and anyone who may have additional information is urged to contact the Sheriff's Department or make an anonymous call to WeTip at 1-800-78-CRIME.

Watch: Woman Pleads Guilty to Having Sex So Loudly, It Shook Neighbor's Furniture