Better way to determine the root dir
authorEnrico Zini <enrico@enricozini.org>
Tue, 13 Oct 2009 10:50:29 +0000 (11:50 +0100)
committerEnrico Zini <enrico@enricozini.org>
Tue, 13 Oct 2009 10:50:29 +0000 (11:50 +0100)
run

diff --git a/run b/run
index 20bc6326df65a4b36fbe4c38ff41a1b769621395..c5ea7f957a63a7b9d971af0f5691f64c6ffa49bd 100755 (executable)
--- a/run
+++ b/run
@@ -1,6 +1,6 @@
 #!/bin/sh
 
-ROOT=`dirname $0`
+ROOT=$( (cd $(dirname $0); pwd) )
 
 #export ZAVAI_CONFDIR=$ROOT/conf
 export ZAVAI_ICONDIR=$ROOT/icons