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
0
Merge Requests
0
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
480620ad
Commit
480620ad
authored
May 16, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check eget result for -O-
parent
d932349c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
epm-update
bin/epm-update
+3
-2
common.sh
play.d/common.sh
+2
-2
No files found.
bin/epm-update
View file @
480620ad
...
...
@@ -27,8 +27,9 @@ get_latest_version()
{
URL
=
"https://eepm.ru/app-versions"
#update_url_if_need_mirrored
# TODO: check eget result, use only 200 OK
epm tool eget
-q
-O-
"
$URL
/
$1
"
|
head
-n1
|
cut
-d
" "
-f1
local
var
var
=
"
$(
epm tool eget
-q
-O-
"
$URL
/
$1
"
)
"
||
return
echo
"
$var
"
|
head
-n1
|
cut
-d
" "
-f1
}
__check_for_epm_version
()
...
...
play.d/common.sh
View file @
480620ad
...
...
@@ -79,8 +79,8 @@ get_latest_version()
local
epmver
=
"
$(
epm
--short
--version
)
"
local
URL
for
URL
in
"https://eepm.ru/releases/
$epmver
/app-versions"
"https://eepm.ru/app-versions"
;
do
# TODO: check eget result, use only 200 OK
ver
=
"
$(
e
get
-q
-O-
"
$URL
/
$1
"
|
head
-n1
|
cut
-d
" "
-f1
)
"
ver
=
"
$(
eget
-q
-O-
"
$URL
/
$1
"
)
"
||
continue
ver
=
"
$(
e
cho
"
$ver
"
|
head
-n1
|
cut
-d
" "
-f1
)
"
[
-n
"
$ver
"
]
&&
echo
"
$ver
"
&&
return
done
}
...
...
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