Piping into rake admin:create

I have a new_discourse_database script that, among other things, does this:

cat | bundle exec rake admin:create <<EOF
pfaffman@somewhere.com
mysafepassword
mysafepassword

EOF

Until recently, it worked just fine. Now it works just fine, but it hangs until I hit return.