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:
parent
0376061922
commit
f74103a020
10
CONF.sh
10
CONF.sh
|
@ -74,13 +74,13 @@ export OFFICIAL="Unofficial"
|
||||||
#export OFFICIAL="Official"
|
#export OFFICIAL="Official"
|
||||||
#export OFFICIAL="Official Beta"
|
#export OFFICIAL="Official Beta"
|
||||||
|
|
||||||
# ... for arch
|
# ... for arch
|
||||||
CPU=`dpkg-architecture -qDEB_HOST_DPKG_CPU 2>/dev/null`
|
CPU=`dpkg-architecture -qDEB_HOST_DPKG_CPU 2>/dev/null || true`
|
||||||
if [ $? -ne 0 ] ; then
|
if [ "$CPU"x = ""x ] ; then
|
||||||
CPU=`dpkg-architecture -qDEB_HOST_ARCH`
|
CPU=`dpkg-architecture -qDEB_HOST_ARCH`
|
||||||
fi
|
fi
|
||||||
KERNEL=`dpkg-architecture -qDEB_HOST_DPKG_OS 2>/dev/null`
|
KERNEL=`dpkg-architecture -qDEB_HOST_DPKG_OS 2>/dev/null || true`
|
||||||
if [ $? -ne 0 ] ; then
|
if [ "$KERNEL"x = ""x ] ; then
|
||||||
KERNEL=linux
|
KERNEL=linux
|
||||||
fi
|
fi
|
||||||
if [ $KERNEL = linux ] ; then
|
if [ $KERNEL = linux ] ; then
|
||||||
|
|
|
@ -74,13 +74,13 @@ export OFFICIAL="Unofficial"
|
||||||
#export OFFICIAL="Official"
|
#export OFFICIAL="Official"
|
||||||
#export OFFICIAL="Official Beta"
|
#export OFFICIAL="Official Beta"
|
||||||
|
|
||||||
# ... for arch
|
# ... for arch
|
||||||
CPU=`dpkg-architecture -qDEB_HOST_DPKG_CPU 2>/dev/null`
|
CPU=`dpkg-architecture -qDEB_HOST_DPKG_CPU 2>/dev/null || true`
|
||||||
if [ $? -ne 0 ] ; then
|
if [ "$CPU"x = ""x ] ; then
|
||||||
CPU=`dpkg-architecture -qDEB_HOST_ARCH`
|
CPU=`dpkg-architecture -qDEB_HOST_ARCH`
|
||||||
fi
|
fi
|
||||||
KERNEL=`dpkg-architecture -qDEB_HOST_DPKG_OS 2>/dev/null`
|
KERNEL=`dpkg-architecture -qDEB_HOST_DPKG_OS 2>/dev/null || true`
|
||||||
if [ $? -ne 0 ] ; then
|
if [ "$KERNEL"x = ""x ] ; then
|
||||||
KERNEL=linux
|
KERNEL=linux
|
||||||
fi
|
fi
|
||||||
if [ $KERNEL = linux ] ; then
|
if [ $KERNEL = linux ] ; then
|
||||||
|
|
Loading…
Reference in New Issue