mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-04-19 12:57:16 +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}
|
||||
cd $(dirname $0)
|
||||
basedir=$(pwd)
|
||||
gzip=$(which pigz || which gzip)
|
||||
gzip=$(which pigz 2> /dev/null || which gzip 2> /dev/null)
|
||||
|
||||
# extra environment from local file
|
||||
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
|
||||
osname=$THINGOS_SHORT_NAME
|
||||
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
|
||||
|
||||
# OS version
|
||||
if [ -n "$THINGOS_VERSION" ]; then
|
||||
osversion=$THINGOS_VERSION
|
||||
else
|
||||
osversion=$(source $basedir/board/common/overlay/etc/version && echo $os_version)
|
||||
osversion=$(source $basedir/board/common/overlay/etc/version && echo $OS_VERSION)
|
||||
fi
|
||||
|
||||
# when the special "boards" keyword is used for board, simply list all known boards
|
||||
|
Loading…
x
Reference in New Issue
Block a user