From e407426bdba2ed46a6d24f2f97a6d18c928b9049 Mon Sep 17 00:00:00 2001 From: Tim Kimber Date: Wed, 20 Jan 2021 22:00:32 +0000 Subject: [PATCH] Move FTP_OPTIONS earlier otherwise cd and put will fail --- getssl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/getssl b/getssl index 69bb152..aae7ad9 100755 --- a/getssl +++ b/getssl @@ -865,10 +865,10 @@ copy_file_to_location() { # copies a file, using scp, sftp or ftp if required. $FTP_COMMAND <<- _EOF open $ftphost user $ftpuser $ftppass + $FTP_OPTIONS cd $ftpdirn lcd $fromdir put ./$fromfile - $FTP_OPTIONS _EOF elif [[ "${to:0:5}" == "sftp:" ]] ; then debug "using sftp to copy the file from $from"