make -x also apply to the target script

SSH-Copy-ID-Upstream: 3c4214704f427bd0654adf9b0fc079253db21cf4
This commit is contained in:
Philip Hands 2023-05-23 20:52:13 +02:00 committed by Darren Tucker
parent b79e7b88ed
commit 288482f536
No known key found for this signature in database
1 changed files with 2 additions and 0 deletions

View 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}";