From: Daniel Kahn Gillmor Date: Sun, 16 Nov 2008 05:57:27 +0000 (-0500) Subject: m-s s: avoid failures when $TMPDIR has a space in it. (output might still be a bit... X-Git-Tag: monkeysphere_0.22-1~23^2~4^2~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d068b7c722211adf7d830b1c1b4ce9693eafbe4f;p=monkeysphere.git m-s s: avoid failures when $TMPDIR has a space in it. (output might still be a bit garbled) --- diff --git a/src/monkeysphere-server b/src/monkeysphere-server index 5edaa4f..665d916 100755 --- a/src/monkeysphere-server +++ b/src/monkeysphere-server @@ -137,7 +137,7 @@ show_server_key() { tmpkey=$(mktemp ${TMPDIR:-/tmp}/tmp.XXXXXXXXXX) || failure "Could not create temporary directory!" gpg_authentication "--export $fingerprint" | openpgp2ssh "$fingerprint" 2>/dev/null > "$tmpkey" echo -n "ssh fingerprint: " - ssh-keygen -l -f $tmpkey | awk '{ print $1, $2, $4 }' + ssh-keygen -l -f "$tmpkey" | awk '{ print $1, $2, $4 }' rm -rf "$tmpkey" echo -n "OpenPGP fingerprint: " echo "$fingerprint"