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
3278d97b
Commit
3278d97b
authored
Aug 18, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use env intead of eval
parent
54396ffe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
epm-install
bin/epm-install
+2
-2
epm-sh-functions
bin/epm-sh-functions
+2
-2
No files found.
bin/epm-install
View file @
3278d97b
...
...
@@ -181,10 +181,10 @@ epm_ni_install_names()
sudocmd apt-get
-y
$noremove
--force-yes
-o
APT::Install::VirtualVersion
=
true
-o
APT::Install::Virtual
=
true
-o
Dpkg::Options::
=
"--force-confdef"
-o
Dpkg::Options::
=
"--force-confold"
$APTOPTIONS
install
$@
return
;;
apt-dpkg
)
sudocmd
ACCEPT_EULA
=
y
DEBIAN_FRONTEND
=
noninteractive apt-get
-y
$noremove
--force-yes
-o
APT::Install::VirtualVersion
=
true
-o
APT::Install::Virtual
=
true
-o
Dpkg::Options::
=
"--force-confdef"
-o
Dpkg::Options::
=
"--force-confold"
$APTOPTIONS
install
$@
sudocmd
env
ACCEPT_EULA
=
y
DEBIAN_FRONTEND
=
noninteractive apt-get
-y
$noremove
--force-yes
-o
APT::Install::VirtualVersion
=
true
-o
APT::Install::Virtual
=
true
-o
Dpkg::Options::
=
"--force-confdef"
-o
Dpkg::Options::
=
"--force-confold"
$APTOPTIONS
install
$@
return
;;
aptitude-dpkg
)
sudocmd
ACCEPT_EULA
=
y
DEBIAN_FRONTEND
=
noninteractive aptitude
-y
install
$@
sudocmd
env
ACCEPT_EULA
=
y
DEBIAN_FRONTEND
=
noninteractive aptitude
-y
install
$@
return
;;
yum-rpm
)
sudocmd yum
-y
$YUMOPTIONS
install
$(
echo
"
$*
"
| exp_with_arch_suffix
)
...
...
bin/epm-sh-functions
View file @
3278d97b
...
...
@@ -133,7 +133,7 @@ showcmd()
docmd
()
{
showcmd
"
$*$EXTRA_SHOWDOCMD
"
eval
"
$@
"
"
$@
"
}
# Run every arg with docmd
...
...
@@ -153,7 +153,7 @@ sudorun()
{
set_sudo
if
[
-z
"
$SUDO
"
]
;
then
eval
"
$@
"
"
$@
"
return
fi
$SUDO
"
$@
"
...
...
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