]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
ensure that we're always told the source of keys
authorPhilip Hands <phil@hands.com>
Fri, 2 Aug 2024 08:07:11 +0000 (10:07 +0200)
committerDarren Tucker <dtucker@dtucker.net>
Sat, 17 Aug 2024 01:19:33 +0000 (11:19 +1000)
SSH-Copy-ID-Upstream: 1bee96f4793e8ec3fab9f9361204ae58f5cc7cae

contrib/ssh-copy-id

index 59317243e01aa33f40d3a3633d718a3c93e12ba8..80c30132b7ff1b9e7212f4de9c10a7c7d2e7d231 100644 (file)
@@ -107,7 +107,6 @@ use_id_file() {
       exit 1
     }
   done
-  printf '%s: INFO: Source of key(s) to be installed: "%s"\n' "$0" "$PUB_ID_FILE" >&2
   GET_ID="cat \"$PUB_ID_FILE\""
 }
 
@@ -176,6 +175,8 @@ if [ -z "$(eval $GET_ID)" ] && [ -r "${PUB_ID_FILE:=$DEFAULT_PUB_ID_FILE}" ] ; t
   use_id_file "$PUB_ID_FILE"
 fi
 
+printf '%s: INFO: Source of key(s) to be installed: %s\n' "$0" "${GET_ID#cat }" >&2
+
 # shellcheck disable=SC2086
 if [ -z "$(eval $GET_ID)" ] ; then
   printf '%s: ERROR: No identities found\n' "$0" >&2