The owner of a Chinese takeaway hit a robber over the head with a wok, and detained him until gardaí arrived.
Michael Cassidy (22), of Mountain View, Point Road, Dundalk, pleaded guilty to attempted robbery at Lin's Takeaway, in the town, on October 2, 2016, Dundalk Circuit Court heard.
Judge Petria McDonnell was told that before 7pm, Cassidy went into the takeaway armed with a tyre iron.
As he walked in, he pulled a balaclava down over his face and banged the weapon on the counter, shouting at a female staff member to open the till and hand over money.
Simon Lin, owner of the restaurant, who was cooking in the kitchen, heard the commotion, ran out and saw a masked man armed with something.
He later told gardaí he feared for his safety and that of his workers.
Mr Lin lifted a nearby wok and hit Cassidy on the head and the defendant began to run away. Mr Lin came out from behind the counter and chased him, catching up with Cassidy a short distance away and held him while a passer-by contacted gardaí.
The judge imposed a two-and-a-half-year sentence, backdated to November 1 and suspended the last 18 months for two years on condition Cassidy follows the directions of the Probation Service on his release.
Read other news on the city site of Dublin.