From 2041bb7b02208edae0b2f810dc84bfc7c90f50c3 Mon Sep 17 00:00:00 2001 From: Jaromil Date: Wed, 27 Nov 2013 15:53:28 +0100 Subject: [PATCH] small path fixes --- theme | 6 ++++-- utils | 2 -- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/theme b/theme index 0bb70f4..ca5ae43 100755 --- a/theme +++ b/theme @@ -18,15 +18,17 @@ # this source code; if not, write to: # Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. +typeset DIR CMD -DIR=`dirname $0` -CMD=`basename $0` +DIR="`dirname $0`" +CMD="`basename $0`" { test -r $DIR } || { echo "error: launch webnomad commands from your project directory" echo "i.e: ./$DIR/$CMD" return 1 } + source ${DIR}/utils { test -r config.zsh } || { diff --git a/utils b/utils index 5da558d..f292e73 100755 --- a/utils +++ b/utils @@ -19,8 +19,6 @@ # Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. # initialize paths -DIR=`dirname $SYS` # project dir - VERSION=0.3