forked from alnux/aps
remove whole line containing 123 when 123 is a package repo & its website is trololo.git/troll/repo
This commit is contained in:
parent
391795714b
commit
0eb142c4d6
1 changed files with 3 additions and 1 deletions
|
@ -15,7 +15,9 @@ else
|
||||||
# update a repo
|
# update a repo
|
||||||
update) pushd && cd /var/aps/repos/${2} && git pull && popd ;;
|
update) pushd && cd /var/aps/repos/${2} && git pull && popd ;;
|
||||||
# destroy a repo (remove)
|
# 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
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue