X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=shell%2F.local%2Fbin%2Fupdate;h=24892b523245b86e73c3303c21234aae5ceddeca;hb=30b6457bcd8ea12f5ec67d49cc3582fccee100d6;hp=a25812bbfb369ae3a07ce67e7fc8d5b8ad92f155;hpb=e26d42e86a5cecb2c9b75be5b2e7bcea41d19c1f;p=dotfiles.git diff --git a/shell/.local/bin/update b/shell/.local/bin/update old mode 100644 new mode 100755 index a25812b..24892b5 --- a/shell/.local/bin/update +++ b/shell/.local/bin/update @@ -1,16 +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 && ' + echo -n 'apt-get autoremove --purge && apt-get clean && apt-get autoclean' } sudo sh -c "$(cmd)" -sh -c 'offlineimap -u ttyui && vdirsyncer sync && khal && khard' +sh -c "tlmgr update --all --self && offlineimap -o -u ttyui && vdirsyncer sync && khal -c .config/khal/config $NUL && khard $NUL && pass git pull origin master"