In informal U.S. English, if you are told to shape up or ship out, you will have to leave your job, position, etc., if you do not improve your behavior.
b shape up (someone or something) or shape (someone or something) up :to cause (someone or something) to start behaving in a better or more acceptable way