From 80f608dfb8cd0a59609f3c98834e44f0c78fffb0 Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Tue, 14 Jul 2009 02:00:23 -0400 Subject: simplifying find_host_user_id function. --- src/share/mh/add_hostname | 2 +- src/share/mh/revoke_hostname | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'src/share/mh') diff --git a/src/share/mh/add_hostname b/src/share/mh/add_hostname index 37cfd3c..136b678 100644 --- a/src/share/mh/add_hostname +++ b/src/share/mh/add_hostname @@ -28,7 +28,7 @@ fi userID="ssh://${1}" # test that the desired user ID does not already exist -find_host_userid "$userID" > /dev/null && \ +find_host_userid "$userID" && \ failure "Host userID '$userID' already exists." if [ "$PROMPT" = "true" ] ; then diff --git a/src/share/mh/revoke_hostname b/src/share/mh/revoke_hostname index b139cee..b3b8d7a 100644 --- a/src/share/mh/revoke_hostname +++ b/src/share/mh/revoke_hostname @@ -19,7 +19,6 @@ local userID local fingerprint local tmpuidMatch local line -local uidIndex local message local revuidCommand @@ -30,7 +29,7 @@ fi userID="ssh://${1}" # make sure the user ID to revoke -uidIndex=$(find_host_userid "$userID") || \ +find_host_userid "$userID" || \ failure "No non-revoked user ID found matching '$userID'." if [ "$PROMPT" = "true" ] ; then -- cgit v1.2.3