X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=shell%2F.local%2Fbin%2Fupdate;h=06b7fb4c9c57ab5ec11ba503113005eaaa5cdfd3;hb=4f86395e1e33a5df67315023b2a239a97d806807;hp=086ef279f16b8e7f0e8d55e941b0c1b562235339;hpb=b7386be5f9c3076292eb22fa0a1b85b366f2b851;p=dotfiles.git diff --git a/shell/.local/bin/update b/shell/.local/bin/update index 086ef27..06b7fb4 100755 --- a/shell/.local/bin/update +++ b/shell/.local/bin/update @@ -1,17 +1,10 @@ #!/bin/sh -DV=/etc/debian_version NUL='>/dev/null 2>&1' cmd() { - if [ -f $DV ] - then - echo -n 'apt-get update && apt-get dist-upgrade -y ' - [ `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`' - fi + echo -n 'apt-get update && apt-get dist-upgrade -y && ' + echo -n 'apt-get autoremove --purge && apt-get clean && apt-get autoclean' } -sudo sh -c "`cmd`" -sh -c "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"