Add additional info statements

This commit is contained in:
Jacob Patterson 2024-10-15 22:15:47 -04:00
parent 946df782c7
commit e34467a5bc

View file

@ -16,6 +16,8 @@ create_key_from_env() {
mkdir "$HOME"/.ssh
fi
info "Creating key from input variable"
echo "${PLUGIN_SSH_PRIVATE_KEY}" >"$HOME"/.ssh/id_rsa
chmod 600 "$HOME"/.ssh/id_rsa
dropbearconvert openssh dropbear "$HOME"/.ssh/id_rsa "$HOME"/.ssh/id_dropbear
@ -54,6 +56,7 @@ scp -o StrictHostKeyChecking=accept-new \
"${PLUGIN_REMOTE_USER}"@"${PLUGIN_REMOTE_HOST}":"${PLUGIN_REMOTE_PATH}" >/dev/null 2>&1
scp_status=$?
info "Cleaning up SSH keys"
rm -r "$HOME"/.ssh
if [ "$scp_status" -ne 0 ]; then