Browse Source

Fix ftp/sftp problems if challenge starts with a dash

pull/556/head
Tim Kimber 6 years ago
parent
commit
39ccc6bb0e
No known key found for this signature in database GPG Key ID: 3E1804964E76BD18
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      getssl

+ 2
- 2
getssl View File

@ -700,7 +700,7 @@ copy_file_to_location() { # copies a file, using scp, sftp or ftp if required.
user $ftpuser $ftppass
cd $ftpdirn
lcd $fromdir
put $fromfile
put ./$fromfile
_EOF
elif [[ "${to:0:5}" == "sftp:" ]] ; then
debug "using sftp to copy the file from $from"
@ -718,7 +718,7 @@ copy_file_to_location() { # copies a file, using scp, sftp or ftp if required.
sshpass -p "$ftppass" sftp $SFTP_OPTS "$ftpuser@$ftphost" <<- _EOF
cd $ftpdirn
lcd $fromdir
put $fromfile
put ./$fromfile
_EOF
elif [[ "${to:0:5}" == "davs:" ]] ; then
debug "using davs to copy the file from $from"


Loading…
Cancel
Save