Adding recursive flag to key based scp command

This commit is contained in:
shockrah 2024-09-26 19:50:30 -07:00
parent f9bc463b16
commit 31578b2ad8

View File

@ -7,7 +7,7 @@ if [[ "$INPUT_KEY" ]]; then
chmod 400 key # Set the key as Read-Only
echo "Trying SCP process with SSH key"
# Runs the SCP command
scp -P $INPUT_PORT -o StrictHostKeyChecking=no -i key $INPUT_ORIGIN "$INPUT_USERNAME"@"$INPUT_HOST":"$INPUT_DESTINATION"
scp -P $INPUT_PORT -o StrictHostKeyChecking=no -i key $INPUT_ORIGIN -r "$INPUT_USERNAME"@"$INPUT_HOST":"$INPUT_DESTINATION"
else
# If the keyis empty, it uses the password for the SCP
echo "Trying SCP process with password"