The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

fatal: could not read Username for 'https://bitbucket.org': No such device or address

Morganja95
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 22, 2019

After creating a bash script to pull updates, it is unable to do so, giving me the error in the title. I use the same username I enter manually (which works, just not in the script).

Here is the script I'm using:

#!/bin/bash
# Pulls from remote repo and implements changes

su - rails -c "cd /var/www/myapp/code;
git pull;
expect \"sername for 'https://bitbucket.org':\";
send \"Morganja95\";
interact;
expect \"assword for 'https://Morganja95@bitbucket.org':\";
send \"password\";
interact" # Now that the final command's ran,
# we'll auto - exit the subshell

cd /var/www/myapp/code
RAILS_ENV=production bundle exec rake assets:clobber
RAILS_ENV=production bundle exec rake assets:precompile
nginx -t && sudo nginx -s reload

0 answers

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

TAGS
AUG Leaders

Atlassian Community Events