Commit 8d73548f authored by Vitaly Lipatov's avatar Vitaly Lipatov

removerepo: fix tasks remove

parent 590fb151
......@@ -43,7 +43,7 @@ case $DISTRNAME in
tasks)
info "remove task repos"
assure_exists apt-repo
epm repolist | grep "/repo/" | while read repo ; do
epm repolist | grep -E " repo/[0-9]+/" | while read repo ; do
sudocmd apt-repo rm "$repo"
done
return 0
......@@ -66,7 +66,7 @@ case $DISTRNAME in
;;
esac
[ -n "$repo" ] || fatal "No such repo or task. Use epm remove repo [autoimports|archive|tasks/TASKNUMBER]"
[ -n "$repo" ] || fatal "No such repo or task. Use epm remove repo <autoimports|archive|tasks|TASKNUMBER>"
sudocmd apt-repo rm "$repo"
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