refactor: Remove duplicated code

This commit is contained in:
Hennadii Stepanov
2020-05-02 00:48:35 +03:00
parent 35f1189ea7
commit 8f9f4ba5e2
2 changed files with 13 additions and 19 deletions

View File

@@ -38,7 +38,7 @@ fi
if [ -n "$GIT_TAG" ]; then
NEWINFO="#define BUILD_GIT_TAG \"$GIT_TAG\""
elif [ -n "$GIT_COMMIT" ]; then
NEWINFO="#define BUILD_GIT_COMMIT $GIT_COMMIT"
NEWINFO="#define BUILD_GIT_COMMIT \"$GIT_COMMIT\""
else
NEWINFO="// No build information available"
fi