commit b8031e1a27eab82adb28f8a080f3b827ac14eef4 Author: Elan Ruusamäe <g...@delfi.ee> Date: Wed Oct 13 18:27:34 2021 +0300
In verbose mode print also gpg signed message client/make-request.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) --- diff --git a/client/make-request.sh b/client/make-request.sh index 7ca0297..90c07f9 100755 --- a/client/make-request.sh +++ b/client/make-request.sh @@ -870,8 +870,9 @@ gen_req() { gen_email () { # make request first, so the STDERR/STDOUT streams won't be mixed - local tmp req - tmp=$(mktemp) + local tmpd tmp req + tmpd=$(mktemp -d) + tmp=$tmpd/req gen_req > $tmp if [ "$verbose" = "yes" ]; then @@ -888,8 +889,14 @@ gen_email () { EOF - gpg --clearsign --default-key $default_key $gpg_opts --output=- $tmp - rm -f $tmp + gpg --clearsign --default-key $default_key $gpg_opts --output=$tmpd/sign $tmp + + if [ "$verbose" = "yes" ]; then + cat >&2 $tmpd/sign + fi + + cat $tmpd/sign + rm -rf $tmpd } gen_email | send_request ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/projects/pld-builder.new.git/commitdiff/2e0aca549db43572dd76abe15cc089b18a753bf8 _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit