From e15f2ff903b7ca0ed689ca40d5e3bc531b459794 Mon Sep 17 00:00:00 2001 From: shockrah Date: Wed, 25 Sep 2024 20:08:02 -0700 Subject: [PATCH] Making sure we can upload sub folders --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index e1e0658..2fd860d 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -12,10 +12,10 @@ else # If the keyis empty, it uses the password for the SCP echo "Trying SCP process with password" # Runs the SCP command - sshpass -p $INPUT_PASSWORD scp -P $INPUT_PORT -o StrictHostKeyChecking=no $INPUT_ORIGIN "$INPUT_USERNAME"@"$INPUT_HOST":"$INPUT_DESTINATION" + sshpass -p $INPUT_PASSWORD scp -P $INPUT_PORT -o StrictHostKeyChecking=no -r $INPUT_ORIGIN "$INPUT_USERNAME"@"$INPUT_HOST":"$INPUT_DESTINATION" fi time=$(date) echo "-----------------------------" echo "| Files copied successfully |" echo "-----------------------------" -echo "::set-output name=time::$time" \ No newline at end of file +echo "::set-output name=time::$time"