thedesk/app/gitHash.js

7 lines
184 B
JavaScript
Raw Normal View History

2021-04-13 14:10:55 +10:00
const fs = require('fs')
const execSync = require('child_process').execSync
const gitHash = execSync('git rev-parse HEAD')
.toString()
.trim()
fs.writeFileSync('git', gitHash)