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
Nurlan
eepm
Commits
bf26a600
Commit
bf26a600
authored
Feb 24, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-update: check for available epm version
parent
536c12fa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
epm-update
bin/epm-update
+17
-0
No files found.
bin/epm-update
View file @
bf26a600
...
...
@@ -21,6 +21,22 @@
load_helper epm-sh-warmup
# TODO: restore mirroring
get_latest_version
()
{
URL
=
"https://eepm.ru/app-versions"
#update_url_if_need_mirrored
epm tool eget
-q
-O-
"
$URL
/
$1
"
}
__check_for_epm_version
()
{
local
latest
=
"
$(
get_latest_version
"epm"
2>/dev/null
)
"
#[ -z "$latest" ] && return
local
res
=
"
$(
epm print compare
"
$EPMVERSION
"
"
$latest
"
)
"
[
"
$res
"
=
"-1"
]
&&
info
"Latest EPM version in Korinf repository is
$latest
. You have version
$EPMVERSION
running."
}
epm_update
()
{
[
-z
"
$*
"
]
||
fatal
"No arguments are allowed here"
...
...
@@ -35,6 +51,7 @@ case $PMTYPE in
sudocmd apt-get update
local
ret
=
"
$?
"
cd
-
>
/dev/null
__check_for_epm_version
return
$ret
#sudocmd apt-get -f install || exit
;;
...
...
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