summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xrender_locally8
1 files changed, 2 insertions, 6 deletions
diff --git a/render_locally b/render_locally
index ce83cd84..153e7e8a 100755
--- a/render_locally
+++ b/render_locally
@@ -9,12 +9,8 @@
# Written by Thomas Schwinge <tschwinge@gnu.org>
-src=$(dirname "$0") &&
-# Invoking ikiwiki with ``src=.'' will make it render `.git/' as well.
-case $src in
- .*) src=$(cd "$src" && pwd);;
- *) :;;
-esac &&
+# Need a symlink-free path.
+src=$(readlink -f "$(dirname "$0")") &&
dest=$src.rendered &&
ikiwiki \