Fix in shell logic for ARCH detection; make sure we don't have a

non-zero exit code, as build.sh will fail then.
This commit is contained in:
Steve McIntyre 2006-06-08 00:46:58 +00:00
parent 0376061922
commit f74103a020
2 changed files with 10 additions and 10 deletions

10
CONF.sh
View File

@ -74,13 +74,13 @@ export OFFICIAL="Unofficial"
#export OFFICIAL="Official"
#export OFFICIAL="Official Beta"
# ... for arch
CPU=`dpkg-architecture -qDEB_HOST_DPKG_CPU 2>/dev/null`
if [ $? -ne 0 ] ; then
# ... for arch
CPU=`dpkg-architecture -qDEB_HOST_DPKG_CPU 2>/dev/null || true`
if [ "$CPU"x = ""x ] ; then
CPU=`dpkg-architecture -qDEB_HOST_ARCH`
fi
KERNEL=`dpkg-architecture -qDEB_HOST_DPKG_OS 2>/dev/null`
if [ $? -ne 0 ] ; then
KERNEL=`dpkg-architecture -qDEB_HOST_DPKG_OS 2>/dev/null || true`
if [ "$KERNEL"x = ""x ] ; then
KERNEL=linux
fi
if [ $KERNEL = linux ] ; then

10
debian/CONF.sh vendored
View File

@ -74,13 +74,13 @@ export OFFICIAL="Unofficial"
#export OFFICIAL="Official"
#export OFFICIAL="Official Beta"
# ... for arch
CPU=`dpkg-architecture -qDEB_HOST_DPKG_CPU 2>/dev/null`
if [ $? -ne 0 ] ; then
# ... for arch
CPU=`dpkg-architecture -qDEB_HOST_DPKG_CPU 2>/dev/null || true`
if [ "$CPU"x = ""x ] ; then
CPU=`dpkg-architecture -qDEB_HOST_ARCH`
fi
KERNEL=`dpkg-architecture -qDEB_HOST_DPKG_OS 2>/dev/null`
if [ $? -ne 0 ] ; then
KERNEL=`dpkg-architecture -qDEB_HOST_DPKG_OS 2>/dev/null || true`
if [ "$KERNEL"x = ""x ] ; then
KERNEL=linux
fi
if [ $KERNEL = linux ] ; then