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
Vladislav
eepm
Commits
2907c53f
Commit
2907c53f
authored
Dec 16, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: fix print description
parent
c4f8a384
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
14 deletions
+6
-14
epm-play
bin/epm-play
+1
-1
common.sh
play.d/common.sh
+5
-13
No files found.
bin/epm-play
View file @
2907c53f
...
...
@@ -306,7 +306,7 @@ case "$1" in
esac
if
[
"
$1
"
=
"--list-all"
]
||
[
"
$1
"
=
"list-all"
]
||
[
-z
"
$*
"
]
;
then
[
-n
"
$short
"
]
||
[
-n
"
$quiet
"
]
||
echo
"Available applications:"
[
-n
"
$short
"
]
||
[
-n
"
$quiet
"
]
||
echo
"Available applications
(for current arch
$(
$DISTRVENDOR
-a
)
)
:"
__epm_play_list
$psdir
[
-n
"
$quiet
"
]
||
[
-n
"
$*
"
]
&&
exit
echo
...
...
play.d/common.sh
View file @
2907c53f
...
...
@@ -15,7 +15,11 @@ check_url_is_accessible()
is_supported_arch
()
{
local
i
# skip checking if there are no arches
[
-n
"
$SUPPORTEDARCHES
"
]
||
return
0
[
-n
"
$1
"
]
||
return
0
for
i
in
$SUPPORTEDARCHES
;
do
[
"
$i
"
=
"
$1
"
]
&&
return
0
done
...
...
@@ -117,18 +121,6 @@ case "$1" in
esac
check_supported_arch
()
{
# skip checking if no arches
[
-n
"
$1
"
]
||
return
0
local arch
=
"
$(
epm print info
-a
)
"
for
i
in
$*
;
do
[
"
$arch
"
=
"
$i
"
]
&&
return
0
done
return
1
}
# legacy compatibility and support direct run the script
if
[
-z
"
$DISTRVENDOR
"
]
;
then
export
DISTRVENDOR
=
"epm print info"
...
...
@@ -141,4 +133,4 @@ if [ -z "$SUDO" ] && [ "$UID" != "0" ] ; then
SUDO
=
"sudo"
fi
check_supported_arch
$SUPPORTEDARCHES
||
fatal
"Only '
$SUPPORTEDARCHES
' architectures is supported"
is_supported_arch
"
$(
epm print info
-a
)
"
||
fatal
"Only '
$SUPPORTEDARCHES
' architectures is supported"
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