We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eac75a0 commit 11cfa78Copy full SHA for 11cfa78
scripts/docker-entrypoint.sh
@@ -33,7 +33,11 @@ configure_ssh_host() {
33
}
34
35
connect_ssh() {
36
- user=$(ssh "${SSH_VERBOSE}" -p "${REMOTE_PORT}" "${REMOTE_USER}@${REMOTE_HOST}" whoami)
+ cmd="ssh"
37
+ if [ "${SSH_VERBOSE}" != "" ]; then
38
+ cmd="ssh ${SSH_VERBOSE}"
39
+ fi
40
+ user=$(${cmd} -p "${REMOTE_PORT}" "${REMOTE_USER}@${REMOTE_HOST}" whoami)
41
if [ "${user}" != "${REMOTE_USER}" ]; then
42
exit 1;
43
fi
0 commit comments