diff --git a/bin/pull-arabic b/bin/pull-arabic index cbc6243..cc98eb9 100755 --- a/bin/pull-arabic +++ b/bin/pull-arabic @@ -9,7 +9,7 @@ require "paint" # Configuration variables. base_uri = "www.sacred-texts.com" path = "/isl/uq/%{htm_file}" -dest_path = File.join(__dir__, "..", "src", "arabic", "%{chapter_num}.json") +dest_path = File.expand_path File.join(__dir__, "..", "src", "arabic", "%{chapter_num}.json") chapter_count = 114 cool_off = 5 diff --git a/bin/pull-english b/bin/pull-english index a614a9d..a7e71ca 100755 --- a/bin/pull-english +++ b/bin/pull-english @@ -9,8 +9,8 @@ require "paint" # Configuration variables. base_uri = "quran.com" path = "/%{chapter_num}/%{verse_num}" -dest_path = File.join(__dir__, "..", "src", "english", "%{chapter_num}.json") -arab_path = File.join(__dir__, "..", "src", "arabic", "%{chapter_num}.json") +dest_path = File.expand_path File.join(__dir__, "..", "src", "english", "%{chapter_num}.json") +arab_path = File.expand_path File.join(__dir__, "..", "src", "arabic", "%{chapter_num}.json") chapter_count = 114 cool_off = 5