From: Micah Anderson Date: Fri, 1 Oct 2010 14:07:46 +0000 (-0400) Subject: fix revoke_key typo in creating temporary directory X-Git-Tag: monkeysphere_0.32-1~2^2~9 X-Git-Url: http://git.tremily.us/?p=monkeysphere.git;a=commitdiff_plain;h=d37829e6c2dfdcac912a9d6e9203e62343f3dd01;hp=9b000f2f9abe2a1cd2af07038fb86d39aa89b29d fix revoke_key typo in creating temporary directory fix variable specifying which key to revoke monkeysphere-host revoke-key would produce the following errors, this commit fixes that: Really publish this cert to zimmermann.mayfirst.org ? (Y/n) y /usr/share/monkeysphere/mh/revoke_key: line 96: mkmstempdir: command not found gpg: new configuration file `/root/.gnupg/gpg.conf' created gpg: WARNING: options in `/root/.gnupg/gpg.conf' are not yet active during this run gpg: "0x!" not a key ID: skipping --- diff --git a/src/share/mh/revoke_key b/src/share/mh/revoke_key index 5a013e0..9077e4c 100644 --- a/src/share/mh/revoke_key +++ b/src/share/mh/revoke_key @@ -93,10 +93,10 @@ y if [ "${really/n/N}" = 'N' ] ; then printf "Not publishing.\n" >&2 else - local newhome=$(mkmstempdir) + local newhome=$(msmktempdir) GNUPGHOME="$newhome" gpg --no-tty --quiet --import < "$HOST_KEY_FILE" GNUPGHOME="$newhome" gpg --no-tty --quiet --import <<< "$revcert" - GNUPGHOME="$newhome" gpg --keyserver "$KEYSERVER" --send "0x${HOST_FINGERPRINT}!" + GNUPGHOME="$newhome" gpg --keyserver "$KEYSERVER" --send "0x${keyID}!" rm -rf "$newhome" fi fi