sundtek-mediatv: fixed unpack script

This commit is contained in:
vpeter4 2012-03-21 19:49:38 +01:00
parent d61061312f
commit a2997b6a63

View File

@ -27,7 +27,8 @@ mkdir -p $BUILD/${PKG_NAME}_${PKG_VERSION}
(
cd $BUILD/${PKG_NAME}_${PKG_VERSION}
if [ ${SOURCES:0:1} = "/" ]; then
CHAR=`echo $SOURCES | awk '{ch=substr($0, 0, 1); printf("%c", ch); }'`
if [ ${CHAR} = "/" ]; then
SRC_INSTALLER_ROOT=""
else
SRC_INSTALLER_ROOT="$ROOT/"