trilium/set-build.sh

3 lines
158 B
Bash
Raw Normal View History

2017-11-14 12:35:23 +08:00
#!/usr/bin/env bash
echo 'module.exports = { build_date:"'`date --iso-8601=seconds`'", build_revision: "'`git log -1 --format="%H"`'" };' > services/build.js