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
e5515745
Commit
e5515745
authored
May 01, 2023
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play common.sh: update to latest available version in any case
parent
271a6c22
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
11 deletions
+16
-11
common.sh
play.d/common.sh
+16
-11
No files found.
play.d/common.sh
View file @
e5515745
...
...
@@ -48,10 +48,10 @@ get_latest_version()
{
local
epmver
=
"
$(
epm
--short
--version
)
"
local
URL
=
"https://eepm.ru/releases/
$epmver
/app-versions"
if
!
eget
-q
-O-
"
$URL
/
$1
"
;
the
n
URL
=
"https://eepm.ru/app-versions"
eget
-q
-O-
"
$URL
/
$1
"
fi
eget
-q
-O-
"
$URL
/
$1
"
&&
retur
n
URL
=
"https://eepm.ru/app-versions
"
eget
-q
-O-
"
$URL
/
$1
"
}
print_product_alt
()
...
...
@@ -193,16 +193,21 @@ case "$1" in
fi
# latestpkgver <= $pkgver
if
[
-z
"
$force
"
]
&&
[
"
$(
epm print compare package version
$latestpkgver
$pkgver
)
"
!=
"1"
]
;
then
echo
"Latest available version of
$PKGNAME
:
$latestpkgver
. Installed version:
$pkgver
."
if
[
"
$latestpkgver
"
=
"
$pkgver
"
]
;
then
echo
"Latest available version of
$PKGNAME
$latestpkgver
is already installed."
else
echo
"Latest available version of
$PKGNAME
:
$latestpkgver
, but you have installed more new version:
$pkgver
."
fi
exit
fi
if
[
-n
"
$force
"
]
;
then
echo
"Updating
$PKGNAME
from
$pkgver
to latest available version ..."
else
echo
"Updating
$PKGNAME
from
$pkgver
to
$latestpkgver
version ..."
VERSION
=
"
$latestpkgver
"
fi
echo
"Updating
$PKGNAME
from
$pkgver
to latest available version (equal to
$latestpkgver
or newer) ..."
#if [ -n "$force" ] ; then
# echo "Updating $PKGNAME from $pkgver to latest available version ..."
#else
# echo "Updating $PKGNAME from $pkgver to $latestpkgver version ..."
# VERSION="$latestpkgver"
#fi
fi
# pass to run play code
;;
...
...
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