summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKjetil Orbekk <kjetil.orbekk@gmail.com>2015-11-14 19:34:25 -0500
committerKjetil Orbekk <kjetil.orbekk@gmail.com>2015-11-14 19:34:25 -0500
commit4e11680f13ebd3ccd9019276e51b637bff22aa0e (patch)
tree1ee5bfc74fa78b727f3f47f86c586c71332d62ac
parente3239ba3c43538a588b8e08e312336ac841918b0 (diff)
Publish can now be run from other directories.
-rwxr-xr-xpublish.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/publish.sh b/publish.sh
index bb70386..26251b2 100755
--- a/publish.sh
+++ b/publish.sh
@@ -1,6 +1,7 @@
#!/bin/bash
set -x
+cd $(dirname $0)
(cd input && git pull)
INPUTS=$(find input -name '*.org' -exec grep -l "#+PUBLISH" {} \;)