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

_______________________________________________
Scratchbox-devel mailing list
[email protected]
http://lists.scratchbox.org/cgi-bin/mailman/listinfo/scratchbox-devel

Reply via email to