To improve your behaviour, performance, or fitness to the required standard.
"The coach warned the squad that they needed to shape up before the tournament."
Shape up or ship out.
— Common American English idiom, widely used in military and workplace contexts from at least the mid-20th century.