Skip to content

Commit 016443e

Browse files
committed
Hotfixed order of read flags
1 parent b8bdcb7 commit 016443e

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

git-author-editor.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ responed_yes () {
1717
clean_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
3535
if [[ -z $repo_url ]]; then clean_error "Please enter a url!"; fi
3636
echo
3737

@@ -54,9 +54,9 @@ echo
5454
cd "$download_dir/$repo_name"* || clean_error "Could not Change Directory to \"$download_dir/$repo_name\"!"
5555
if [[ $? -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
6060
echo
6161

6262
git filter-branch --env-filter "
@@ -77,15 +77,15 @@ fi
7777
if [[ $? -ne 0 ]]; then clean_exit $?; fi
7878
echo
7979

80-
read -pr "Review new commit history? (y/n) " should_reveiw
80+
read -rp "Review new commit history? (y/n) " should_reveiw
8181
echo
8282
if responed_yes "$should_reveiw"; then
8383
git log
8484
echo
8585
echo
8686
fi
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
8989
echo
9090
if responed_yes "$should_push"; then
9191
git push --force --tags origin 'refs/heads/*'

0 commit comments

Comments
 (0)