Problem deploying rails 3 app with capistrano

Hi i’m having a problem when try to run the bundle install command in
the deploy i get this message:
Enter your password to install the bundled RubyGems to your system:
then I introduced the password but nothing happens.

This is the task I have to run the bundle:

run “cd #{release_path} ; bundle check 2>&1 > /dev/null ; if [ $? -ne 0
] ; then sh -c ‘sudo bundle install’ ; fi”

someone know how to solve this issue?