Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
eepm
Commits
37934f38
Commit
37934f38
authored
Apr 02, 2026
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play.d/common.sh: get_github_url: try direct URL before API call when no globs
parent
2bbba1af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
common.sh
play.d/common.sh
+11
-0
No files found.
play.d/common.sh
View file @
37934f38
...
...
@@ -305,6 +305,17 @@ get_github_url()
{
local
url
=
"
$1
"
local
asset_name
=
"
$2
"
local
user_and_repo
=
${
url
#https
://github.com/
}
user_and_repo
=
${
user_and_repo
%/
}
# If asset_name has no globs, try direct URL without API call
if
!
echo
"
$asset_name
"
|
grep
-q
'[*?]'
;
then
local
direct
for
tag
in
"
$VERSION
"
"v
$VERSION
"
;
do
direct
=
"https://github.com/
$user_and_repo
/releases/download/
$tag
/
$asset_name
"
eget
--check-url
"
$direct
"
2>/dev/null
&&
echo
"
$direct
"
&&
return
done
fi
# See tdesktop.*.tar.gz
#echo "$asset_name" | grep -q "\.[*?]" && fatal "Only glob symbols * and ? are supported. Don't use regexp! Input string: $asset_name"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment