Sfoglia il codice sorgente

build : fix line breaking error in build-info.sh (#2349)

* fix line breaking

* build number line break removal
Hesen Peng 2 anni fa
parent
commit
82552b7f54
1 ha cambiato i file con 3 aggiunte e 2 eliminazioni
  1. 3 2
      scripts/build-info.sh

+ 3 - 2
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"