If you are asking about the flex line vs the hard line, then it appears you have aftermarket flex lines. Usually, these are installed with a suspension lift due to the longer travel from the suspension system. As you found, they are not as great as you would think. The hole probably came from the rubbing of the tire as it does take quite a bit to remove the outer coating, then the braid steel line (another coating), then the rubber line inside.
If you have a TJ, the stock rear line will work fine, unless you have a LA system. Then the line would need to be longer. Reason its not necessary for a SA system is because you haven't changed the length relationship between the frame and the control arms. The rear brake flex line follows the upper control arm on the driver's side.
For the front, its quite different, but also an easy fix. You could look for aftermarket flex lines which would be longer and bolt in, but you could also go stock. No not stock TJ, but YJ. YJ lines have a steel extension on it at the caliper. Its 3" longer than the TJs in comparison. These work well for my setup.
Beware, though, if the stock hard lines are a little rusty, be prepared to spline in new lines. I had to do that to the front passenger and the rear line when I disconnected the flex lines from the hard lines.