How To Break Infinite While Loop In Shell Scripting