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"