diff --git a/script/rubocop-autocorrect.sh b/script/rubocop-autocorrect.sh index b49e19639b..f82dc0f56a 100755 --- a/script/rubocop-autocorrect.sh +++ b/script/rubocop-autocorrect.sh @@ -26,7 +26,8 @@ grep "This cop supports safe autocorrection" -A 5 .rubocop_todo.yml\ echo "Trying to autocorrect safely: $cop" bundle exec rubocop --regenerate-todo --except "$cop" - echo "Safely autocorrect $cop\n" > .git/COMMIT_EDITMSG + echo "Safely autocorrect $cop" > .git/COMMIT_EDITMSG + echo "" >> .git/COMMIT_EDITMSG bundle exec rubocop --autocorrect >> .git/COMMIT_EDITMSG git add --all git commit --file .git/COMMIT_EDITMSG