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
02262940
Commit
02262940
authored
Aug 11, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm play: allow direct run the scripts
parent
deb36b44
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
README.md
play.d/README.md
+3
-3
common.sh
play.d/common.sh
+12
-1
No files found.
play.d/README.md
View file @
02262940
The main purpose of any play.d script is
download and install
package.
The main purpose of any play.d script is
to download and to install a
package.
Allowed variables:
*
$DISTRVENDOR (distro_info utility)
*
$SUDO
*
$DISTRVENDOR (distro_info utility)
(legacy, use epm print info instead of)
*
$SUDO
(will filled with 'sudo' command when running without root privilegies
Allowed commands:
*
epm (run the same epm called from)
...
...
play.d/common.sh
View file @
02262940
...
...
@@ -96,7 +96,7 @@ case "$1" in
# just pass
;;
*
)
fatal
"Unknown command
$1
"
fatal
"Unknown command
'
$1
'. Use this script only via epm play.
"
;;
esac
...
...
@@ -112,5 +112,16 @@ check_supported_arch()
return
1
}
# legacy compatibility and support direct run the script
if
[
-z
"
$DISTRVENDOR
"
]
;
then
export
DISTRVENDOR
=
"epm print info"
if
[
-x
"../bin/epm"
]
;
then
export
PATH
=
"
$(
realpath
../bin
)
:
$PATH
"
fi
fi
if
[
-z
"
$SUDO
"
]
&&
[
"
$UID
"
!=
"0"
]
;
then
SUDO
=
"sudo"
fi
check_supported_arch
$SUPPORTEDARCHES
||
fatal
"Only
$SUPPORTEDARCHES
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