krobertson / deb-s3

Easily create and manage an APT repository on S3 -- NO LONGER MAINTAINED
MIT License
482 stars 148 forks source link

Add option for custom gpg command #156

Open rdodev opened 6 years ago

rdodev commented 6 years ago

Folks, for your consideration here's a minor change to allow commands other than "gpg" to be passed in as cli option. This is useful when a machine running this script has gpg2 instead of plain gpg or perhaps other gpg-compliant tooling that's not gpg or wraps it.

This is a backwards-compatible change and does not interfere or breaks cli functionality as it exists today.

Example of cli option being used: deb-s3 upload --bucket my-bucket my-deb-package-1.0.0_amd64.deb --gpg_cmd gpg2

Signed-off-by: Ruben Orduz rubenoz@gmail.com