Commit 6143f648 authored by Boris Yumankulov's avatar Boris Yumankulov Committed by Vitaly Lipatov

epm play get_github_version: replace curl to eget

parent 2a4d22b7
......@@ -178,9 +178,9 @@ get_github_version()
local asset_name="$2"
if [ "$3" == "prerelease" ] ; then
curl -s "https://api.github.com/repos/${user_and_repo}/releases" | grep 'browser_download_url' | grep -iEo 'https.*download.*' | grep "$2" | head -n1
eget -O- "https://api.github.com/repos/${user_and_repo}/releases" | grep 'browser_download_url' | grep -iEo 'https.*download.*' | grep "$2" | head -n1
else
curl -s "https://api.github.com/repos/${user_and_repo}/releases" \
eget -O- "https://api.github.com/repos/${user_and_repo}/releases" \
| awk '{
if ($0 ~ /"prerelease": false/) {
prerelease = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment