Skip to content

Commit

Permalink
build.sh: replace internal version string from THINGOS_VERSION
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrisan committed Mar 24, 2018
1 parent 4af1c69 commit 4a38dd2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4a38dd2

Please sign in to comment.