From 4011bbadc0c3a646f241ec226611deee2e1a07dd Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Tue, 4 Sep 2007 21:10:25 +0200 Subject: Make it work for paths starting with `..'. --- render_locally | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'render_locally') 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 \ -- cgit v1.2.3