refactor: Change printf to echo for SSH key addition, also remove ssh-init

This commit is contained in:
Steven 2025-12-06 22:16:37 +01:00 committed by GitHub
parent 8a39558686
commit 58a99456da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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=""