I am using GPG Version 2.2.20 and whenever I run the following command while signing the release file, I am prompted for the passphrase.
gpg --default-key <my_email> --clearsign -o - Release > InRelease
I want to avoid getting prompts and pass the passphrase directly in the command. After reading a few answers for other questions, I tried these commands:
gpg --default-key <my_email> --passphrase <my_passphrase> --clearsign -o - Release > InRelease
gpg --default-key <my_email> --batch --passphrase <my_passphrase> --clearsign -o - Release > InRelease
But the problem is still the same, it is prompting me for the passphrase instead of taking directly from the given command. How do I pass the passphrase correctly to the command?