Fix how version number is saved/retrieved. Version is now stored in
[monkeysphere.git] / src / monkeysphere-host
index fc3b607b02f82c3c53f59a1aafdbfe7932833b39..c454354f5b60fd1e85d541401021d25614cd5045 100755 (executable)
@@ -193,7 +193,7 @@ show_key() {
 
     # list revokers, if there are any
     revokers=$(gpg --list-keys --with-colons --fixed-list-mode \
-       | grep '^rvk:' | cut -d: -f10) || true
+       | 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 +315,7 @@ case $COMMAND in
        ;;
 
     'version'|'v')
-       echo "$VERSION"
+       version
        ;;
 
     '--help'|'help'|'-h'|'h'|'?')