A York City man shot while being robbed in the city Sunday night was able to collapse into an off-duty taxicab being driven by a friend, who took him to the hospital, police said.

Jonathan Walker, 29, of Roosevelt Avenue, suffered a gunshot wound to the left leg, according to York City Police, who said the wound is not life-threatening.

Police said Walker told officers he sells compact discs and had met with a customer who lives near the corner of West College Avenue and Oak Lane.

Walker was at the corner about 10:20 p.m. waiting for his friend — an off-duty cabbie — when he was approached from behind by two men who robbed him of $60 to $70, police said. They told him, "just give it up" and "don't make me shoot," according to police.

Walker was struck in the mouth, then shot in the left leg, shattering a lower leg bone, police said.

His friend had already arrived to pick him up, so when Walker was shot he simply fell into the cab, and his friend drove him to York Hospital, police said.

Walker's condition could not be obtained from the hospital.

Anyone with information of the crime is asked to call city detectives at (717) 849-2219, or call the city's anonymous crime tip line, (717) 849-2204. Or anonymously text a tip to YORKTIPS at 847411.

— Reach Liz Evans Scolforo at levans@yorkdispatch.com.