[Scratchbox-devel] sb-adduser broken in 1.0.8

Eugene San eugenesan at gmail.com
Wed Aug 22 14:10:49 EEST 2007


Hi,


I was installing scratchbox on fresh machine with Ubuntu when realized 
that sb-adduser is not working.

SBOX_DIR guessing is not working in new version of sb-adduser.


Simple script editing solved the problem:


Before:

-----------------------------------------------------
-sbinpath=`dirname "$0"`
-if [ "z$sbinpath" = 'z.' ] ; then
-       sbinpath=`pwd`
-fi

-sboxrel=`dirname "$sbinpath"`
-echo "[$sboxrel]"
-SBOX_DIR=`readlink -f $sboxrel`
-echo "[$SBOX_DIR]"


After:

-----------------------------------------------------

+sboxrel=`readlink -f "$0"`

+SBOX_DIR=`dirname $sboxrel`
+SBOX_DIR=`dirname $SBOX_DIR`


P.S. I know it's ugly but working :-)


Eugene



More information about the Scratchbox-devel mailing list