Grace exit and case insensitive search

Writing exit to exit the repo loop
The liner wasn’t properly closed
Have sent eh problem only in bash