mirror of
https://github.com/Burnett01/rsync-deployments.git
synced 2025-12-19 11:12:18 +01:00
refactor: Change printf to echo for SSH key addition, also remove ssh-init
This commit is contained in:
parent
8a39558686
commit
58a99456da
1 changed files with 1 additions and 2 deletions
|
|
@ -12,12 +12,11 @@ if [ -z "$(echo "$INPUT_REMOTE_PATH" | awk '{$1=$1};1')" ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Initialize SSH and known hosts.
|
# Initialize SSH and known hosts.
|
||||||
source ssh-init
|
|
||||||
source hosts-init
|
source hosts-init
|
||||||
|
|
||||||
# Start the SSH agent and load key.
|
# Start the SSH agent and load key.
|
||||||
source agent-start "$GITHUB_ACTION"
|
source agent-start "$GITHUB_ACTION"
|
||||||
printf '%s' "$INPUT_REMOTE_KEY" | SSH_PASS="${INPUT_REMOTE_KEY_PASS}" agent-add >/dev/null 2>&1
|
echo "$INPUT_REMOTE_KEY" | SSH_PASS="$INPUT_REMOTE_KEY_PASS" agent-add
|
||||||
|
|
||||||
# Variables.
|
# Variables.
|
||||||
LEGACY_RSA_HOSTKEYS=""
|
LEGACY_RSA_HOSTKEYS=""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue