thedesk/app/gitHash.js
2021-04-13 13:10:55 +09:00

7 lines
184 B
JavaScript

const fs = require('fs')
const execSync = require('child_process').execSync
const gitHash = execSync('git rev-parse HEAD')
.toString()
.trim()
fs.writeFileSync('git', gitHash)