Fix recursive upload with Cygwin

This commit is contained in:
q3aql 2022-01-21 22:19:41 +01:00
parent 2c034253b4
commit 620ee69b65
5 changed files with 1 additions and 1 deletions

BIN
src/.ks-upa.swp Normal file

Binary file not shown.

BIN
src/.ks-upf.swp Normal file

Binary file not shown.

BIN
src/.ks-upr.swp Normal file

Binary file not shown.

BIN
src/.ks-upv.swp Normal file

Binary file not shown.

View File

@ -159,7 +159,7 @@ function sendFile() {
else
echo ""
echo "+ Sending files from ${2} to ${5} (${4})"
/usr/bin/sshpass -p ${1} /usr/bin/scp ${2}/* ${3}@${4}:${5}/ 2> /dev/null
/usr/bin/sshpass -p ${1} /usr/bin/scp -r ${2}/* ${3}@${4}:${5}/ 2> /dev/null
fi
# Run command for upload on Unix systems
else