mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-09-25 10:58:56 +02:00
make -x also apply to the target script
SSH-Copy-ID-Upstream: 3c4214704f427bd0654adf9b0fc079253db21cf4
This commit is contained in:
parent
b79e7b88ed
commit
288482f536
@ -142,6 +142,7 @@ do
|
|||||||
TARGET_PATH="${OPTARG}"
|
TARGET_PATH="${OPTARG}"
|
||||||
;;
|
;;
|
||||||
x)
|
x)
|
||||||
|
SET_X="set -x;"
|
||||||
set -x
|
set -x
|
||||||
;;
|
;;
|
||||||
h|\?)
|
h|\?)
|
||||||
@ -254,6 +255,7 @@ installkeys_sh() {
|
|||||||
# and if available restorecon is used to restore the SELinux context
|
# and if available restorecon is used to restore the SELinux context
|
||||||
# OpenWrt has a special case for root only.
|
# OpenWrt has a special case for root only.
|
||||||
INSTALLKEYS_SH=$(tr '\t\n' ' ' <<-EOF
|
INSTALLKEYS_SH=$(tr '\t\n' ' ' <<-EOF
|
||||||
|
$SET_X
|
||||||
cd;
|
cd;
|
||||||
umask 077;
|
umask 077;
|
||||||
AUTH_KEY_FILE="${TARGET_PATH}";
|
AUTH_KEY_FILE="${TARGET_PATH}";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user