I try to automate gpg keys import. In bash shell I have following line:
$ echo "$KEY_PASSWORD" | gpg --batch --passphrase-fd 0 --yes --import <(echo "$KEY" | base64 -d)
This is not working in sh shell. How can I pass password and import key in one line in sh shell?