From 71bdc7c2de68f912d55d792c8831390dc6ab700a Mon Sep 17 00:00:00 2001 From: Felipe <41008398+StrawberryMaster@users.noreply.github.com> Date: Mon, 27 Oct 2025 16:48:15 +0000 Subject: [PATCH] Use explicit current directory to avoid ambiguity see `Results saved in /build/websites` but nothing is saved :( Fixes StrawberryMaster/wayback-machine-downloader#34 --- lib/wayback_machine_downloader.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/wayback_machine_downloader.rb b/lib/wayback_machine_downloader.rb index ca2b63a..fe5721c 100644 --- a/lib/wayback_machine_downloader.rb +++ b/lib/wayback_machine_downloader.rb @@ -205,7 +205,8 @@ class WaybackMachineDownloader @directory else # ensure the default path is absolute and normalized - File.expand_path(File.join('websites', backup_name)) + cwd = Dir.pwd + File.expand_path(File.join(cwd, 'websites', backup_name)) end end