repositories
/
dotfiles.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
reenable sidebar merge
[dotfiles.git]
/
shell
/
.local
/
bin
/
update
diff --git
a/shell/.local/bin/update
b/shell/.local/bin/update
old mode 100644
(file)
new mode 100755
(executable)
index
a25812b
..
086ef27
--- a/
shell/.local/bin/update
+++ b/
shell/.local/bin/update
@@
-1,5
+1,6
@@
#!/bin/sh
DV=/etc/debian_version
#!/bin/sh
DV=/etc/debian_version
+NUL='>/dev/null 2>&1'
cmd() {
if [ -f $DV ]
cmd() {
if [ -f $DV ]
@@
-12,5
+13,5
@@
cmd() {
fi
}
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"