Fix xbps' broken behaviour

If I'd wanted to type several commands to update, I'd use Debian
This commit is contained in:
crater2150 2020-02-13 14:23:58 +01:00
parent 714c14fc06
commit 054bac0b9d

View file

@ -16,7 +16,16 @@ xqn() {
alias xfiles="xbps-query -f"
alias xupdate="xbps-install -Su"
alias xupdate="sudo xbps-install -Su"
function xupdate() {
sudo xbps-install -Su
if [[ $? == 16 ]]; then
xbps-install -Syu xbps
xupdate
fi
}
function xowner() {
xbps-query -Ro "*${1}*"
}