remove whole line containing 123 when 123 is a package repo & its website is trololo.git/troll/repo

This commit is contained in:
Ohio2 2021-08-25 11:43:35 +02:00
parent 391795714b
commit 0eb142c4d6

View file

@ -15,7 +15,9 @@ else
# update a repo
update) pushd && cd /var/aps/repos/${2} && git pull && popd ;;
# destroy a repo (remove)
destroy) rm -rfv /var/aps/repos/${2} ;;
destroy) rm -rfv /var/aps/repos/${2}
sed -i "/^${2}/d" /etc/al/repo.conf
;;
esac
fi