From 8bc223a5d002ab89ade94f12ab04ea37ff06f1fd Mon Sep 17 00:00:00 2001 From: Roger Oba Date: Fri, 27 Dec 2024 12:27:08 -0300 Subject: [PATCH 1/2] Add EOF line break to normalize output. --- src/check_url_status.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/check_url_status.rb b/src/check_url_status.rb index 765bf42..55cbe33 100644 --- a/src/check_url_status.rb +++ b/src/check_url_status.rb @@ -90,7 +90,7 @@ def process_data_sources(data, bar) puts "✅ No broken URLs found." exit(0) # Exit with zero status to indicate no changes were made else - File.write("data_sources.json", JSON.pretty_generate(updated_sources)) + File.write("data_sources.json", JSON.pretty_generate(updated_sources) + "\n") puts "❌ Broken URLs removed and data_sources.json updated." exit(1) # Exit with non-zero status to indicate changes were made end From a4922118b6ec1bfd562d8d5fb4bc1f19c9548111 Mon Sep 17 00:00:00 2001 From: Roger Oba Date: Fri, 27 Dec 2024 12:27:35 -0300 Subject: [PATCH 2/2] Skip URL check for Himalayas website. --- data_sources.json | 1 + 1 file changed, 1 insertion(+) diff --git a/data_sources.json b/data_sources.json index 0741df4..25ec1c5 100644 --- a/data_sources.json +++ b/data_sources.json @@ -26,6 +26,7 @@ { "name": "Himalayas", "url": "https://himalayas.app", + "skip_url_check": true, "categories": [ "global" ]