Browse Source

Missed part of suggested change in batch

Co-authored-by: Tim Kimber <timkimber@users.noreply.github.com>
pull/685/head
Timothe Litt 4 years ago
committed by GitHub
parent
commit
b8f943b88b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      getssl

+ 2
- 1
getssl View File

@ -954,7 +954,8 @@ copy_file_to_location() { # copies a file, using scp, sftp or ftp if required.
debug "ftp user=$ftpuser - pass=$ftppass - host=$ftphost dir=$ftpdirn file=$ftpfile"
debug "from dir=$fromdir file=$fromfile"
if [[ "${to:0:5}" == "ftps:" ]] ; then
curl --ftp-ssl -u "${ftpuser}:${ftppass}" -T "${fromdir}/${fromfile}" "ftp://${ftphost}${ftpdirn}/"
# shellcheck disable=SC2086
curl $FTPS_OPTIONS --ftp-ssl -u "${ftpuser}:${ftppass}" -T "${fromdir}/${fromfile}" "ftp://${ftphost}${ftpdirn}:990/"
else
# shellcheck disable=SC2086
curl $FTPS_OPTIONS --ftp-ssl -u "${ftpuser}:${ftppass}" -T "${fromdir}/${fromfile}" "ftp://${ftphost}${ftpdirn}/"


Loading…
Cancel
Save