X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=update_mobile_org;h=f154fbd7b702755b345f15f81ac8b7bcea1ccb33;hb=6624eff777ffe8ae30046d62897b131215475d11;hp=41f898af4a352aa3f53c3ae3e0d8c796c083b6c3;hpb=df84d9e3d1aa4266edd09caea980cf505d288ec6;p=bin.git diff --git a/update_mobile_org b/update_mobile_org index 41f898a..f154fbd 100755 --- a/update_mobile_org +++ b/update_mobile_org @@ -9,10 +9,10 @@ LOCKFILE=$TMPDIR/update_mobile_org if [ -n "$PS1" ]; then LOCKOPTS=-f; fi; -LOCKIT=with-lock-ex $LOCKOPTS $LOCKFILE -TIMEOUT=timeout -k1m 1m +LOCKIT="with-lock-ex $LOCKOPTS $LOCKFILE" +TIMEOUT="timeout -k1m 1m" ${LOCKIT} ${TIMEOUT} mr -d ~/org-mode up; -if [ "$HOSTNAME" = "rzlab" ]; then +if [ "$HOSTNAME" = "linnode" ]; then ${LOCKIT} ${TIMEOUT} mr -d ~/projects/org-notes up; else ${LOCKIT} ${TIMEOUT} emacsclient -n -e '(org-save-all-org-buffers)' >/dev/null 2>&1;