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
19fb0f19
Commit
19fb0f19
authored
Aug 26, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm-removerepo: fix remove repo status (warning about empty grep)
parent
d4120392
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
6 deletions
+5
-6
epm-removerepo
bin/epm-removerepo
+5
-6
No files found.
bin/epm-removerepo
View file @
19fb0f19
...
...
@@ -22,18 +22,17 @@ load_helper epm-sh-altlinux
# remove grepped lines
__epm_removerepo_alt_grepremove
()
{
local
rp
local
flag
=
0
(
quiet
=
1 epm repolist
)
2>/dev/null |
grep
-E
"
$1
"
|
while
read
rp
;
do
[
-n
"
$dryrun
"
]
||
apt-repo
--dry-run
rm
"
$rp
"
local
rl
rl
=
"
$((
quiet
=
1
epm repolist
)
2
>/
dev/null
|
grep
-
E
"
$1
"
)
"
[ -z "
$rl
" ] && warning "
Can
't find '
$1
' in the repos (see '
# epm repolist' output)" && return 1
echo
"
$rl
"
|
while
read
rp
;
do
[
-
n
"
$dryrun
"
]
&&
apt-repo
--
dry-run
rm
"
$rp
"
&&
continue
if
[
-
n
"
$verbose
"
]
;
then
sudocmd apt-repo
$dryrun
rm
"
$rp
"
else
$SUDO
apt-repo
$dryrun
rm
"
$rp
"
fi
flag
=
1
done
[
"
$flag
"
=
"0"
]
&&
warning
"Can't find '
$1
' in the repos (see 'epm repolist' output)"
}
__epm_removerepo_alt
()
...
...
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