summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorPhilip Hands <phil@hands.com>2023-05-23 20:52:13 +0200
committerDarren Tucker <dtucker@dtucker.net>2023-05-25 18:24:47 +1000
commit288482f53613f3e74544eb92deeb24f7c7f1f371 (patch)
treea9c614308af0c9e76e77c76fb1c3a3067514c105 /contrib
parentb79e7b88ed44f0e4339f0ff35c96c78a92175a8d (diff)
make -x also apply to the target script
Diffstat (limited to 'contrib')
-rw-r--r--contrib/ssh-copy-id2
1 files changed, 2 insertions, 0 deletions
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}";