X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=shell%2F.local%2Fbin%2Fupdate;h=0321d45da66f315db8fa842f4752d5dcb03aac60;hb=57600e32012ce55c030a1db99d6d3f9e2c772e04;hp=a451d417df3264812af6a16c953adf472e4000db;hpb=04afc939b89a847081345c90976f45255c6ff871;p=dotfiles.git diff --git a/shell/.local/bin/update b/shell/.local/bin/update index a451d41..0321d45 100755 --- a/shell/.local/bin/update +++ b/shell/.local/bin/update @@ -1,17 +1,19 @@ #!/bin/sh -DV=/etc/debian_version -NUL='>/dev/null 2>&1' +NUL=">/dev/null 2>&1" + +vdirsyncer sync 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 "tlmgr update --all --self && offlineimap -u ttyui && vdirsyncer sync && khal $NUL && khard $NUL && pass git pull" +tlmgr update --self && tlmgr update --all +eval "khal calendar $NUL" +eval "khard $NUL" +pass git pull origin master +if ! tmux list-sessions +then + tmuxmail +fi