tweak loading of fingerprints in multi_key wrapper function, so unnecessary error...
authorJameson Rollins <jrollins@finestructure.net>
Tue, 19 Jan 2010 04:38:14 +0000 (23:38 -0500)
committerJameson Rollins <jrollins@finestructure.net>
Tue, 19 Jan 2010 04:38:14 +0000 (23:38 -0500)
src/monkeysphere-host

index 5007cac3b6f503d1dc9324740cdc8a4ffc5df04e..4d3edf4f41bc40cdf290a33c9af9809c889ad475 100755 (executable)
@@ -251,11 +251,12 @@ multi_key() {
     shift
     local keys=$@
     local i=0
-    local fprs=($(list_primary_fingerprints <"$HOST_KEY_FILE"))
     local key
 
     check_no_keys
 
+    local fprs=($(list_primary_fingerprints <"$HOST_KEY_FILE"))
+
     if [[ -z "$1" || "$1" == '--all' ]] ; then
        keys="${fprs[@]}"
     fi