mirror of
https://github.com/cross-the-world/scp-pipeline.git
synced 2025-09-11 03:48:58 +08:00
allow create remote dir if not exist
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user