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
beff3300
Commit
beff3300
authored
Oct 23, 2020
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm: allow use $EGET in prescription scripts
parent
eed9af82
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
epm-prescription
bin/epm-prescription
+3
-0
epm-sh-functions
bin/epm-sh-functions
+14
-0
No files found.
bin/epm-prescription
View file @
beff3300
...
@@ -36,6 +36,9 @@ if [ ! -x "$script" ] ; then
...
@@ -36,6 +36,9 @@ if [ ! -x "$script" ] ; then
fatal
"Can't find
$script
prescription."
fatal
"Can't find
$script
prescription."
fi
fi
# allow use EGET in the scripts
__set_EGET
info
"Running
$(
$script
--description
)
..."
info
"Running
$(
$script
--description
)
..."
docmd
$script
--run
docmd
$script
--run
...
...
bin/epm-sh-functions
View file @
beff3300
...
@@ -383,6 +383,20 @@ assure_exists()
...
@@ -383,6 +383,20 @@ assure_exists()
(
direct
=
''
epm_assure
"
$1
"
$package
$3
)
||
fatal
"Can't assure in '
$1
' command from
$package$textpackage
package"
(
direct
=
''
epm_assure
"
$1
"
$package
$3
)
||
fatal
"Can't assure in '
$1
' command from
$package$textpackage
package"
}
}
__set_EGET
()
{
# use internal eget only if exists
if
[
-s
$SHAREDIR
/tools_eget
]
;
then
export
EGET
=
"
$SHAREDIR
/tools_eget"
return
fi
# FIXME: we need disable output here, eget can be used for get output
assure_exists eget
>
/dev/null
# use external command, not the function
export
EGET
=
"
$(
which eget
)
"
||
fatal
"Missed command eget from installed package eget"
}
# will replaced within disabled_eget in packaged version
# will replaced within disabled_eget in packaged version
eget
()
eget
()
{
{
...
...
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