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
e701e8d3
Commit
e701e8d3
authored
Dec 09, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm removerepo: error if there is an option as arg
parent
5f14496a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
epm-removerepo
bin/epm-removerepo
+7
-1
No files found.
bin/epm-removerepo
View file @
e701e8d3
...
...
@@ -32,7 +32,10 @@ __epm_removerepo_alt_grepremove()
fi
echo
"
$rl
"
|
while
read
rp
;
do
# TODO: print removed lines
[
-
n
"
$dryrun
"
]
&&
docmd apt-repo
$dryrun
rm
"
$rp
"
&&
continue
if
[
-
n
"
$dryrun
"
]
;
then
docmd apt-repo
$dryrun
rm
"
$rp
"
continue
fi
if
[
-
n
"
$verbose
"
]
;
then
sudocmd apt-repo
$dryrun
rm
"
$rp
"
else
...
...
@@ -75,6 +78,9 @@ __epm_removerepo_alt()
shift
__epm_removerepo_alt_grepremove
" repo/
$1
/"
;;
-
*
)
fatal
"epm removerepo: no options are supported"
;;
*
)
# TODO: if return empty for whole line, use grep
# sudocmd apt-repo $dryrun rm "$*"
...
...
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