update pdflatexi
[dotfiles.git] / shell / .local / bin / update
old mode 100644 (file)
new mode 100755 (executable)
index a25812b..3563918
@@ -1,5 +1,6 @@
 #!/bin/sh
 DV=/etc/debian_version
+NUL='>/dev/null 2>&1'
 
 cmd() {
        if [ -f $DV ]
@@ -8,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 'offlineimap -u ttyui && vdirsyncer sync && khal && khard'
+sh -c "tlmgr update --all --self && offlineimap -u ttyui && vdirsyncer sync && khal $NUL && khard $NUL && pass git pull"