X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=src%2Fsubcommands%2Fmh%2Fimport-key;h=386e02d4556d2f89a2a63a1d4124cfa4aafd3603;hb=54b8a4cdbedafdde87cfa35dc61a48d6a2d46bc6;hp=d8ab9df51b8c726c5da6b54ad487292f906300c7;hpb=c7abef25b0cb36c04d12619659b7f0ad1b410c9a;p=monkeysphere.git diff --git a/src/subcommands/mh/import-key b/src/subcommands/mh/import-key old mode 100755 new mode 100644 index d8ab9df..386e02d --- a/src/subcommands/mh/import-key +++ b/src/subcommands/mh/import-key @@ -1,14 +1,15 @@ -#!/usr/bin/env bash +# -*-shell-script-*- +# This should be sourced by bash (though we welcome changes to make it POSIX sh compliant) # Monkeysphere host import-key subcommand # # The monkeysphere scripts are written by: -# Jameson Rollins +# Jameson Rollins # Jamie McClelland # Daniel Kahn Gillmor # -# They are Copyright 2008, and are all released under the GPL, version 3 -# or later. +# They are Copyright 2008-2009 and are all released under the GPL, +# version 3 or later. import_key() { @@ -25,10 +26,6 @@ fingerprint_server_key >/dev/null \ # get options while true ; do case "$1" in - -h|--hostname) - hostName="$2" - shift 2 - ;; -f|--keyfile) keyFile="$2" shift 2 @@ -42,6 +39,9 @@ while true ; do failure "Unknown option '$1'. Type '$PGRM help' for usage." fi + hostName="$1" + shift + ;; break ;; esac