fix some return code setting stuf that was no longer being used, and change name...
[monkeysphere.git] / src / monkeysphere-host
index 0dba1f62ef787cdd322196e5804c622a4981b130..5e7a9312759f0e8e2772cd868d8a8c79d6eba57c 100755 (executable)
@@ -41,9 +41,6 @@ DATE=$(date -u '+%FT%T')
 # unset some environment variables that could screw things up
 unset GREP_OPTIONS
 
-# default return code
-RETURN=0
-
 ########################################################################
 # FUNCTIONS
 ########################################################################
@@ -193,7 +190,7 @@ show_key() {
 
     # list revokers, if there are any
     revokers=$(gpg --list-keys --with-colons --fixed-list-mode \
-       | grep '^rvk:' | cut -d: -f10)
+       | awk -F: '/^rvk:/{ print $10 }' )
     if [ "$revokers" ] ; then
        echo "The following keys are allowed to revoke this host key:"
        for key in $revokers ; do
@@ -315,7 +312,7 @@ case $COMMAND in
        ;;
 
     'version'|'v')
-       echo "$VERSION"
+       version
        ;;
 
     '--help'|'help'|'-h'|'h'|'?')
@@ -327,5 +324,3 @@ case $COMMAND in
 Type '$PGRM help' for usage."
         ;;
 esac
-
-exit "$RETURN"