]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
make -x also apply to the target script
authorPhilip Hands <phil@hands.com>
Tue, 23 May 2023 18:52:13 +0000 (20:52 +0200)
committerDarren Tucker <dtucker@dtucker.net>
Thu, 25 May 2023 08:24:47 +0000 (18:24 +1000)
SSH-Copy-ID-Upstream: 3c4214704f427bd0654adf9b0fc079253db21cf4

contrib/ssh-copy-id

index 23965b241d4eb65c6457f8b4ff0765b82a0290b1..ce16ea0bc6789ea3b5566c454c68fc37de5786d0 100644 (file)
@@ -142,6 +142,7 @@ do
       TARGET_PATH="${OPTARG}"
       ;;
     x)
+      SET_X="set -x;"
       set -x
       ;;
     h|\?)
@@ -254,6 +255,7 @@ installkeys_sh() {
   #    and if available restorecon is used to restore the SELinux context
   # OpenWrt has a special case for root only.
   INSTALLKEYS_SH=$(tr '\t\n' ' ' <<-EOF
+       $SET_X
        cd;
        umask 077;
        AUTH_KEY_FILE="${TARGET_PATH}";