I'm trying to write a script which git clone.
my script:
git clone ssh://git@domain.com/myproject.gitexpect "Enter passphrase for key..."send "myPassword"read -p "enter..."
and after run it I got:
Cloning into 'myproject'...Enter passphrase for key...: |
and the program is waiting for password now, it seems like 'expect' and 'send' don't work properly.What can be wrong in my script ?