mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-24 11:46:30 +00:00
build.sh: replace internal version string from THINGOS_VERSION
This commit is contained in:
parent
4af1c690d3
commit
4a38dd2fff
4
build.sh
4
build.sh
@ -31,6 +31,10 @@ fi
|
||||
|
||||
# OS version
|
||||
if [ -n "$THINGOS_VERSION" ]; then
|
||||
# set internal OS version from env variable
|
||||
if [ -f $outputdir/target/etc/version ]; then
|
||||
sed -r -i "s/os_version=\".*\"/os_version=\"$THINGOS_VERSION\"/" $outputdir/target/etc/version
|
||||
fi
|
||||
osversion=$THINGOS_VERSION
|
||||
else
|
||||
osversion=$(source $basedir/board/common/overlay/etc/version && echo $os_version)
|
||||
|
Loading…
x
Reference in New Issue
Block a user