aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorHesen Peng <hesen.peng@gmail.com>2023-07-25 05:24:09 -0700
committerGitHub <noreply@github.com>2023-07-25 15:24:09 +0300
commit82552b7f5403ca13957ac9a2cdc1732470057b62 (patch)
tree80a0bb44a06ac40f8791fb272c39067248d6d3a7 /scripts
parent0c06204fb39aa5560e883e0ae74be9518c57d88e (diff)
build : fix line breaking error in build-info.sh (#2349)
* fix line breaking * build number line break removal
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/build-info.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/build-info.sh b/scripts/build-info.sh
index 507d7e1..ed0d6c5 100755
--- a/scripts/build-info.sh
+++ b/scripts/build-info.sh
@@ -16,7 +16,8 @@ fi
echo "#ifndef BUILD_INFO_H"
echo "#define BUILD_INFO_H"
echo ""
-echo "#define BUILD_NUMBER $BUILD_NUMBER"
-echo "#define BUILD_COMMIT \"$BUILD_COMMIT\""
+echo "#define BUILD_NUMBER $BUILD_NUMBER" | tr -d '\n'
+echo ""
+echo "#define BUILD_COMMIT \"$BUILD_COMMIT\"" | tr -d '\n'
echo ""
echo "#endif // BUILD_INFO_H"