Commit 1471315d authored by Vitaly Lipatov's avatar Vitaly Lipatov

removerepo: add arg checking

parent ca6876ec
...@@ -36,7 +36,7 @@ case $DISTRNAME in ...@@ -36,7 +36,7 @@ case $DISTRNAME in
if tasknumber "$repo" >/dev/null ; then if tasknumber "$repo" >/dev/null ; then
repo="$(epm repolist | grep "repo/$(tasknumber $repo)" | line)" repo="$(epm repolist | grep "repo/$(tasknumber $repo)" | line)"
fi fi
[ -n "$repo" ] || fatal "No such repo or task"
assure_exists apt-repo assure_exists apt-repo
sudocmd apt-repo rm "$repo" sudocmd apt-repo rm "$repo"
return return
......
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