Use explicit current directory to avoid ambiguity

see `Results saved in /build/websites` but nothing is saved :(
Fixes StrawberryMaster/wayback-machine-downloader#34
This commit is contained in:
Felipe 2025-10-27 16:48:15 +00:00 committed by GitHub
parent 4b1ec1e1cc
commit 71bdc7c2de

View File

@ -205,7 +205,8 @@ class WaybackMachineDownloader
@directory @directory
else else
# ensure the default path is absolute and normalized # 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
end end