Commit e701e8d3 authored by Vitaly Lipatov's avatar Vitaly Lipatov

epm removerepo: error if there is an option as arg

parent 5f14496a
...@@ -32,7 +32,10 @@ __epm_removerepo_alt_grepremove() ...@@ -32,7 +32,10 @@ __epm_removerepo_alt_grepremove()
fi fi
echo "$rl" | while read rp ; do echo "$rl" | while read rp ; do
# TODO: print removed lines # 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 if [ -n "$verbose" ] ; then
sudocmd apt-repo $dryrun rm "$rp" sudocmd apt-repo $dryrun rm "$rp"
else else
...@@ -75,6 +78,9 @@ __epm_removerepo_alt() ...@@ -75,6 +78,9 @@ __epm_removerepo_alt()
shift shift
__epm_removerepo_alt_grepremove " repo/$1/" __epm_removerepo_alt_grepremove " repo/$1/"
;; ;;
-*)
fatal "epm removerepo: no options are supported"
;;
*) *)
# TODO: if return empty for whole line, use grep # TODO: if return empty for whole line, use grep
# sudocmd apt-repo $dryrun rm "$*" # sudocmd apt-repo $dryrun rm "$*"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment