summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2024-03-03 10:31:36 -0500
committerJesse Luehrs <doy@tozt.net>2024-03-03 10:31:36 -0500
commit201920f939cd12c8894e5c7ada2cc6bc9107b123 (patch)
tree970e88617836f371a9446d456be61eac37b72fe0
parentda200f06ed865bd9b1dc84e803dad6dad54164f5 (diff)
downloadpuppet-tozt-main.tar.gz
puppet-tozt-main.zip
fix typoHEADmain
-rw-r--r--modules/tick/files/plugins/rclone2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/tick/files/plugins/rclone b/modules/tick/files/plugins/rclone
index 251e48c..8c875ca 100644
--- a/modules/tick/files/plugins/rclone
+++ b/modules/tick/files/plugins/rclone
@@ -13,7 +13,7 @@ JSON.load(%x{#{rclone} lsjson #{crypt_repo}}).each do |dir|
b2_path = "#{b2_repo}/#{dir["Path"]}"
run_start = %x{#{rclone} cat #{crypt_path}/last_run_start}
- run_end = File.ready("/media/persistent/last_run_end")
+ run_end = File.read("/media/persistent/last_run_end")
ago_s = now - DateTime.iso8601(run_end).to_time
dur_s = DateTime.iso8601(run_end).to_time - DateTime.iso8601(run_start).to_time
if dur_s > 0