X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=shell%2F.local%2Fbin%2Fupdate;fp=shell%2F.local%2Fbin%2Fupdate;h=086ef279f16b8e7f0e8d55e941b0c1b562235339;hb=4b436b147222f2e4b6be9be24e63114030ffdfd1;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..086ef27 --- a/shell/.local/bin/update +++ b/shell/.local/bin/update @@ -1,5 +1,6 @@ #!/bin/sh DV=/etc/debian_version +NUL='>/dev/null 2>&1' cmd() { if [ -f $DV ] @@ -12,5 +13,5 @@ cmd() { fi } -sudo sh -c "$(cmd)" -sh -c 'offlineimap -u ttyui && vdirsyncer sync && khal && khard' +sudo sh -c "`cmd`" +sh -c "offlineimap -u ttyui && vdirsyncer sync && khal $NUL && khard $NUL"