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
329b0ca8
Commit
329b0ca8
authored
Sep 01, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix SUDO using
parent
68d2983c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
epm-addrepo
bin/epm-addrepo
+1
-0
epm-removerepo
bin/epm-removerepo
+2
-3
No files found.
bin/epm-addrepo
View file @
329b0ca8
...
...
@@ -138,6 +138,7 @@ __epm_addkey_deb()
local
fingerprint
=
"
$2
"
if
[
-z
"
$fingerprint
"
]
;
then
assure_exists curl
set_sudo
showcmd
"curl -fsSL '
$url
' |
$SUDO
apt-key add -"
a
=
curl
-fsSL
"
$url
"
| sudorun apt-key add -
return
...
...
bin/epm-removerepo
View file @
329b0ca8
...
...
@@ -91,10 +91,9 @@ esac;
case
$PMTYPE
in
apt-dpkg
)
assure_exists apt-add-repository software-properties-common
# FIXME: it is possible there is troubles to pass the args
showcmd apt-add-repository
--remove
"
$*
"
set_sudo
$SUDO
apt-add-repository
--remove
"
$*
"
# FIXME: it is possible there is troubles to pass the args
sudocmd apt-add-repository
--remove
"
$*
"
info
"Check file /etc/apt/sources.list if needed"
;;
aptitude-dpkg
)
...
...
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