diff --git a/CHANGELOG.md b/CHANGELOG.md index a13fcd4..a94d8ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ ### Fixes * native sftp downloads will immediately stop if worker is cancelled +* fix copying downloaded file (`file` option / `with_copy` example) ------------------- diff --git a/lib/db_sucker/application/sklaven_treiber/worker/accessors.rb b/lib/db_sucker/application/sklaven_treiber/worker/accessors.rb index d35073e..5ecf3d8 100644 --- a/lib/db_sucker/application/sklaven_treiber/worker/accessors.rb +++ b/lib/db_sucker/application/sklaven_treiber/worker/accessors.rb @@ -91,12 +91,12 @@ def copy_file_destination dstfile d, dt = Time.current.strftime("%Y-%m-%d"), Time.current.strftime("%H-%M-%S") File.expand_path dstfile.dup - .gsub!(":combined", ":datetime_-_:table") - .gsub!(":datetime", "#{d}_#{dt}") - .gsub!(":date", d) - .gsub!(":time", dt) - .gsub!(":table", table) - .gsub!(":id", sklaventreiber.trxid) + .gsub(":combined", ":datetime_-_:table") + .gsub(":datetime", "#{d}_#{dt}") + .gsub(":date", d) + .gsub(":time", dt) + .gsub(":table", table) + .gsub(":id", sklaventreiber.trxid) end end end