Files
borg/docker/app/scripts/remote-connect
Márcio Fernandes b02ffb7021
All checks were successful
/ build-docker-image (push) Successful in 50s
ssh client revision added some helper scripts and changed to alpine
2025-09-13 23:35:28 +01:00

12 lines
331 B
Plaintext
Executable File

#/bin/bash
source /app/scripts/loadenv
#echo "Received: $@"
#echo "Trace: Connecting with: ${SSH_COMMAND[@]}" "$@"
# converts command to array
read -r -a SSH_COMMAND_ARRAY <<< "$SSH_COMMAND"
#echo "Running: ${SSH_COMMAND_ARRAY[@]} $@"
# executes ssh command with all arguments received from caller
"${SSH_COMMAND_ARRAY[@]}" "$@"