Making sure we can upload sub folders

This commit is contained in:
shockrah 2024-09-25 20:08:02 -07:00
parent b8768ecdd6
commit e15f2ff903

View File

@ -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"
echo "::set-output name=time::$time"