From 3fcdffd727c30419099ea59c1b157f4c6abcd352 Mon Sep 17 00:00:00 2001 From: Idan Cohen Date: Wed, 1 Jun 2022 16:10:33 +0300 Subject: [PATCH] update the search function --- README.md | 0 pip-install.sh | 4 ++-- urls.txt | 0 3 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 README.md create mode 100755 urls.txt diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/pip-install.sh b/pip-install.sh index aeae2f6..02b3c82 100755 --- a/pip-install.sh +++ b/pip-install.sh @@ -14,7 +14,7 @@ print_help() { search_package() { local package=$1 - curl https://pypi.org/project/$package/\#files -s | grep -Eo https://files\.+$package\.+whl > urls.txt + curl https://pypi.org/project/$package/\#files -s | grep -Eo https://files\.+\.+whl > urls.txt } download_package() { @@ -59,4 +59,4 @@ main() { fi } -main $@ \ No newline at end of file +main $@ diff --git a/urls.txt b/urls.txt new file mode 100755 index 0000000..e69de29