X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=shell%2F.local%2Fbin%2Fupdate;h=b32ce611baed29b9515f1da5640fe70422fc88b0;hb=7efd7af689d6679b43e1606460d52258571db2e8;hp=3113604e305b60e3ab7af38c0d26a3f0929c6279;hpb=ac4ab31c495ffd7d902465037050bebb3501b92a;p=dotfiles.git diff --git a/shell/.local/bin/update b/shell/.local/bin/update index 3113604..b32ce61 100755 --- a/shell/.local/bin/update +++ b/shell/.local/bin/update @@ -9,9 +9,9 @@ cmd() { [ `head -c 1 $DV` -ge 9 ] && echo -n '--' || -n '&& apt-get ' echo -n 'autoremove --purge && apt-get clean && apt-get autoclean' else - echo -n 'pacman -Syu && pacman -R `pacman -Qdtq`' + echo -n 'pacman -Syu && pacman -Qdtq | ifne xargs pacman -R' fi } -sudo sh -c "`cmd`" -sh -c "tlmgr update --all --self && offlineimap -u ttyui && vdirsyncer sync && khal $NUL && khard $NUL" +sudo sh -c "$(cmd)" +sh -c "tlmgr update --all --self && offlineimap -u ttyui && vdirsyncer sync && khal -c .config/khal/config $NUL && khard $NUL && pass git pull origin master"