From 2418bb9d5c3b8cbf2d0fc7d429dc5a7cebd6b310 Mon Sep 17 00:00:00 2001 From: Robert Prehn <3952444+prehnRA@users.noreply.github.com> Date: Sat, 24 Apr 2021 11:25:25 -0500 Subject: [PATCH] fix: Ensure parent directory of timestamp db exists --- script/ci/restore-timestamps | 2 ++ 1 file changed, 2 insertions(+) diff --git a/script/ci/restore-timestamps b/script/ci/restore-timestamps index 84f9619a..a1938c0a 100755 --- a/script/ci/restore-timestamps +++ b/script/ci/restore-timestamps @@ -32,6 +32,8 @@ defmodule TimestampRestorer do end defp write_timestamp_database(database) do + File.mkdir_p!(Path.dirname(@db_path)) + database |> Enum.map(fn {key, value} -> "#{key}:#{value}" end) |> Enum.join("\n")