summaryrefslogtreecommitdiff
path: root/src/subcommands
diff options
context:
space:
mode:
authorJameson Graef Rollins <jrollins@finestructure.net>2009-01-31 18:34:06 -0500
committerJameson Graef Rollins <jrollins@finestructure.net>2009-01-31 18:34:06 -0500
commit93527967c043c99c708e209502292cf276877bf9 (patch)
tree9a90f939b9bf9e4692fc35232b537a1cfd371321 /src/subcommands
parentc7abef25b0cb36c04d12619659b7f0ad1b410c9a (diff)
parentc700e9b0dcede303ed1f160ba51f564fd314d2e3 (diff)
Merge commit 'dkg/master'
Diffstat (limited to 'src/subcommands')
-rwxr-xr-xsrc/subcommands/mh/gen-key6
-rwxr-xr-xsrc/subcommands/mh/import-key7
2 files changed, 5 insertions, 8 deletions
diff --git a/src/subcommands/mh/gen-key b/src/subcommands/mh/gen-key
index df57457..72b9138 100755
--- a/src/subcommands/mh/gen-key
+++ b/src/subcommands/mh/gen-key
@@ -29,10 +29,6 @@ fingerprint_server_key >/dev/null \
# get options
while true ; do
case "$1" in
- -h|--hostname)
- hostName="$2"
- shift 2
- ;;
-l|--length)
keyLength="$2"
shift 2
@@ -46,6 +42,8 @@ while true ; do
failure "Unknown option '$1'.
Type '$PGRM help' for usage."
fi
+ hostName="$1"
+ shift;
break
;;
esac
diff --git a/src/subcommands/mh/import-key b/src/subcommands/mh/import-key
index d8ab9df..9ba51d2 100755
--- a/src/subcommands/mh/import-key
+++ b/src/subcommands/mh/import-key
@@ -25,10 +25,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 +38,9 @@ while true ; do
failure "Unknown option '$1'.
Type '$PGRM help' for usage."
fi
+ hostName="$1"
+ shift
+ ;;
break
;;
esac