mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-26 20:56:33 +00:00
build.sh: OS_ vars are now uppercase
This commit is contained in:
parent
c24188ed67
commit
a85b17d115
6
build.sh
6
build.sh
@ -17,7 +17,7 @@ board=$1
|
|||||||
target=${*:2}
|
target=${*:2}
|
||||||
cd $(dirname $0)
|
cd $(dirname $0)
|
||||||
basedir=$(pwd)
|
basedir=$(pwd)
|
||||||
gzip=$(which pigz || which gzip)
|
gzip=$(which pigz 2> /dev/null || which gzip 2> /dev/null)
|
||||||
|
|
||||||
# extra environment from local file
|
# extra environment from local file
|
||||||
test -f $basedir/.build-env && source $basedir/.build-env
|
test -f $basedir/.build-env && source $basedir/.build-env
|
||||||
@ -26,14 +26,14 @@ test -f $basedir/.build-env && source $basedir/.build-env
|
|||||||
if [ -n "$THINGOS_SHORT_NAME" ]; then
|
if [ -n "$THINGOS_SHORT_NAME" ]; then
|
||||||
osname=$THINGOS_SHORT_NAME
|
osname=$THINGOS_SHORT_NAME
|
||||||
else
|
else
|
||||||
osname=$(source $basedir/board/common/overlay/etc/version && echo $os_short_name)
|
osname=$(source $basedir/board/common/overlay/etc/version && echo $OS_SHORT_NAME)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# OS version
|
# OS version
|
||||||
if [ -n "$THINGOS_VERSION" ]; then
|
if [ -n "$THINGOS_VERSION" ]; then
|
||||||
osversion=$THINGOS_VERSION
|
osversion=$THINGOS_VERSION
|
||||||
else
|
else
|
||||||
osversion=$(source $basedir/board/common/overlay/etc/version && echo $os_version)
|
osversion=$(source $basedir/board/common/overlay/etc/version && echo $OS_VERSION)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# when the special "boards" keyword is used for board, simply list all known boards
|
# when the special "boards" keyword is used for board, simply list all known boards
|
||||||
|
Loading…
x
Reference in New Issue
Block a user