Making sure we can upload sub folders
This commit is contained in:
parent
b8768ecdd6
commit
e15f2ff903
@ -12,10 +12,10 @@ else
|
|||||||
# If the keyis empty, it uses the password for the SCP
|
# If the keyis empty, it uses the password for the SCP
|
||||||
echo "Trying SCP process with password"
|
echo "Trying SCP process with password"
|
||||||
# Runs the SCP command
|
# 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
|
fi
|
||||||
time=$(date)
|
time=$(date)
|
||||||
echo "-----------------------------"
|
echo "-----------------------------"
|
||||||
echo "| Files copied successfully |"
|
echo "| Files copied successfully |"
|
||||||
echo "-----------------------------"
|
echo "-----------------------------"
|
||||||
echo "::set-output name=time::$time"
|
echo "::set-output name=time::$time"
|
||||||
|
Loading…
Reference in New Issue
Block a user