[openssh-commits] [openssh] 07/11: make -x also apply to the target script

git+noreply at mindrot.org git+noreply at mindrot.org
Thu May 25 18:26:19 AEST 2023


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit 288482f53613f3e74544eb92deeb24f7c7f1f371
Author: Philip Hands <phil at hands.com>
Date:   Tue May 23 20:52:13 2023 +0200

    make -x also apply to the target script
    
    SSH-Copy-ID-Upstream: 3c4214704f427bd0654adf9b0fc079253db21cf4
---
 contrib/ssh-copy-id | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/contrib/ssh-copy-id b/contrib/ssh-copy-id
index 23965b24..ce16ea0b 100644
--- a/contrib/ssh-copy-id
+++ b/contrib/ssh-copy-id
@@ -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}";

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list