I saw this a year ago on Youtube but can’t figure out what it was called. I thought it starred Anthony Steffen but none of the synopses on Imdb or Wikipedia sound like the movie. The main actor was arrested for something and was put into jail by his brother the sheriff, I think. He was on good terms with his brother but he needed to spend time in the jail for whatever reason. The main actor would sneak out of the jail through the roof or somewhere he had to climb up to and, wearing a mask, conduct retribution and later sneak back into jail unnoticed.
This is my recollection of the basic plot but some of my recollections could be off. It may not have starred Anthony Steffen.