From 39d230c3559d3035db1242e0703ac31d16206d4c Mon Sep 17 00:00:00 2001 From: smf Date: Fri, 8 Mar 2024 16:09:15 +0800 Subject: [PATCH] check --- docker-entrypoint.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 1c136cf..3a44a0e 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -58,13 +58,12 @@ echo " Port $INPUT_REMOTE_DOCKER_PORT" >> ~/.ssh/config echo " IdentityFile ~/.ssh/id_rsa" >> ~/.ssh/config echo " StrictHostKeyChecking no" >> ~/.ssh/config echo " UserKnownHostsFile /dev/null" >> ~/.ssh/config -if [ $INPUT_SSH_PROXY_CMD ]; then +if [ -n $INPUT_SSH_PROXY_CMD ]; then echo "Add ProxyCommand: $INPUT_SSH_PROXY_CMD" echo " ProxyCommand $INPUT_SSH_PROXY_CMD" >> ~/.ssh/config fi echo >> ~/.ssh/config chmod 600 ~/.ssh/config -sleep 1h set context echo "Create docker context"