summaryrefslogtreecommitdiff
path: root/render_locally
diff options
context:
space:
mode:
Diffstat (limited to 'render_locally')
-rwxr-xr-xrender_locally8
1 files changed, 4 insertions, 4 deletions
diff --git a/render_locally b/render_locally
index 3e047c52..01bfe5a8 100755
--- a/render_locally
+++ b/render_locally
@@ -11,10 +11,10 @@
src=$(dirname "$0") &&
# Invoking ikiwiki with ``src=.'' will make it render `.git/' as well.
-if [ "$src" = . ]
-then src=$(pwd)
-else :
-fi &&
+case $src in
+ .*) src=$(cd "$src" && pwd);;
+ *) :;;
+esac &&
dest=$src.rendered &&
ikiwiki \