From 469e512c9d71f4596781977c85f65907af7532fe Mon Sep 17 00:00:00 2001 From: Nguyen Huu Thuong Date: Fri, 12 Jun 2020 12:02:54 +0200 Subject: [PATCH] allow create remote dir if not exist --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 59051a4..aa5d79d 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -25,7 +25,7 @@ check_remote_dir() { local REMOTE=$2 CMD="ssh" if $USEPASS; then - CMD="sshpass -p $INPUT_PASS scp" + CMD="sshpass -p $INPUT_PASS ssh" fi echo "Checking remote directory: '$REMOTE'" if $CMD -o StrictHostKeyChecking=no -o ConnectTimeout=${INPUT_CONNECT_TIMEOUT:-30s} -p "${INPUT_PORT:-22}" "$INPUT_USER"@"$INPUT_HOST" "[ ! -d $REMOTE ]"; then