From f824e685012c86ea3c78388206244e309d73ab32 Mon Sep 17 00:00:00 2001 From: seychelles111 <130751272+seychelles111@users.noreply.github.com> Date: Sat, 22 Jul 2023 22:07:01 +0300 Subject: [PATCH] Delete extract_download_url.sh --- extract_download_url.sh | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 extract_download_url.sh diff --git a/extract_download_url.sh b/extract_download_url.sh deleted file mode 100644 index 16d5ba5..0000000 --- a/extract_download_url.sh +++ /dev/null @@ -1,13 +0,0 @@ -# Make a GET request and store the JSON response in a variable -response=$(curl -s "https://api.github.com/repos/libreddit/libreddit/releases/latest") - -# Extract all browser_download_urls using regex -download_urls=$(echo "$response" | grep -o -E "https://github.com/libreddit/libreddit/releases/download/[^/]+/libreddit") - -# Select a single URL from the matches -selected_url=$(echo "$download_urls" | head -n 1) - -# Print the selected download URL -echo "Download URL: $selected_url" - -curl -LO $selected_url \ No newline at end of file