Skip to content

Commit

Permalink
fix: remove gitTag if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
saitho committed Feb 10, 2021
1 parent 45ec2d4 commit a688312
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ if (enableGit) {
}
console.log('[TsAppVersion] ' + colors.green('Long Git version: ') + colors.yellow(versionWithHash));
src += ` versionLong: '${versionWithHash}',\n`;
if (info.hasOwnProperty('tag')) {
if (info.hasOwnProperty('tag') && info.tag !== null) {
console.log('[TsAppVersion] ' + colors.green('Git tag: ') + colors.yellow(info.tag));
src += ` gitTag: '${info.tag}',\n`;
}
Expand Down

0 comments on commit a688312

Please sign in to comment.