From b8bebb30c6f37716b3177b76deafe865d9da5bc9 Mon Sep 17 00:00:00 2001 From: 0x1eef <0x1eef@protonmail.com> Date: Tue, 26 Apr 2022 15:32:12 -0300 Subject: [PATCH] expand paths --- bin/pull-arabic | 2 +- bin/pull-english | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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