Update of /cvsroot/wpdev/wolfpack
In directory sc8-pr-cvs1:/tmp/cvs-serv32508
Modified Files:
setup.sh
Log Message:
autocorrection of setup.d variable.
Index: setup.sh
===================================================================
RCS file: /cvsroot/wpdev/wolfpack/setup.sh,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** setup.sh 14 Oct 2003 04:35:48 -0000 1.2
--- setup.sh 14 Oct 2003 06:34:30 -0000 1.3
***************
*** 35,38 ****
--- 35,47 ----
# check for permissions which are required by run-parts {{{
+ #
+ # correct path if necessary
+ #
+ if ! echo "$SETUP_BASEDIR"|grep '^/' > /dev/null 2>&1;
+ then
+ SETUP_BASEDIR="$PWD/$SETUP_BASEDIR";
+ fi
+ SETUP_BASEDIR="$(echo -n "$SETUP_BASEDIR"|sed -e 's|/\.*/|/|g')";
+
echo -e "\e[33m--> \e[1mPermissions correctly set?\e[m";
#
|