Browse Source

dirty > 0

master
pvincent 4 years ago
parent
commit
9e0afce1d9
  1. 4
      vite.config.ts

4
vite.config.ts

@ -16,8 +16,8 @@ function buildVersion(): string {
if (!isGitCommand()) {
return version
}
const dirty = execSync("git status -s | wc -l").toString()
return `${version}${dirty}`
const dirty = Number(execSync("git status -s | wc -l").toString())
return dirty > 0 ? `${version}${dirty}` : version
}
function isGitCommand() {

Loading…
Cancel
Save