Commit 88e8e6fd authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm play.d common.sh: fix get_github_url

parent ff8baf6a
......@@ -219,7 +219,7 @@ get_github_url()
wc="$(__convert_glob__to_regexp "$asset_name")"
if [ "$3" == "prerelease" ] ; then
get_github_release_info "$url" | grep 'browser_download_url' | grep -iEo 'https.*download.*' | grep -E "$wc" | head -n1
get_github_release_info "$url" | grep 'browser_download_url' | grep -iEo 'https.*download.*' | grep -E "$wc" | head -n1 | sed -e 's|"$||'
else
get_github_release_info "$url" \
| awk '{
......@@ -232,7 +232,7 @@ get_github_url()
match($0, /"browser_download_url": "(https[^"]*)"/, arr);
print arr[1];
}
}' | grep -E "$wc" | head -1
}' | grep -E "$wc" | head -n1 | sed -e 's|"$||'
fi
}
......
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