@@ -17,7 +17,7 @@ responed_yes () {
1717clean_exit () {
1818 echo
1919
20- read -pr " Do you want to keep the cloned repository? (y/n) " should_keep
20+ read -rp " Do you want to keep the cloned repository? (y/n) " should_keep
2121 if responed_yes " $should_keep " ; then exit " $1 " ; fi # Exit immediately
2222
2323 rm -rf " $download_dir /${repo_name:? } " *
@@ -31,7 +31,7 @@ clean_error () {
3131}
3232
3333
34- read -pr " Enter the URL of the GIT Repository: " repo_url
34+ read -rp " Enter the URL of the GIT Repository: " repo_url
3535if [[ -z $repo_url ]]; then clean_error " Please enter a url!" ; fi
3636echo
3737
5454cd " $download_dir /$repo_name " * || clean_error " Could not Change Directory to \" $download_dir /$repo_name \" !"
5555if [[ $? -ne 0 ]]; then clean_exit $? ; fi
5656
57- read -pr " What was the email for the old account? " old_email
58- read -pr " What is the fixed email? " fixed_email
59- read -pr " What is the fixed username? " fixed_name
57+ read -rp " What was the email for the old account? " old_email
58+ read -rp " What is the fixed email? " fixed_email
59+ read -rp " What is the fixed username? " fixed_name
6060echo
6161
6262git filter-branch --env-filter "
7777if [[ $? -ne 0 ]]; then clean_exit $? ; fi
7878echo
7979
80- read -pr " Review new commit history? (y/n) " should_reveiw
80+ read -rp " Review new commit history? (y/n) " should_reveiw
8181echo
8282if responed_yes " $should_reveiw " ; then
8383 git log
8484 echo
8585 echo
8686fi
8787
88- read -pr " Do you want to push these changes? (y/n) " should_push
88+ read -rp " Do you want to push these changes? (y/n) " should_push
8989echo
9090if responed_yes " $should_push " ; then
9191 git push --force --tags origin ' refs/heads/*'
0 commit comments